Shell script to download from an FTP site

4 Apr 2009

by hemanth

Single command to download from any FTP site :

wget ftp://user:password@ftp.mydomain.com/path/file.ext

Download all the wallpapers from Gnome art :

#!/bin/sh

wget ftp://anonymous:anonymous@ftp.gnome.org/pub/GNOME/teams/art.gnome.org/ba...

Name it wallpaper.sh , chmod 777 then ./wallpaper , you get all the wallpapers downloaded to the pwd :)

Say you want only 1280x1024.jpg size wall papers then change the last part to /*1280x1024.jpg

That's it , the ultimate power of shell exploited !!

Share this