Download Files from Web / FTP Server via Command Line

You may use curl and paramter -o to save a file localy.

curl http://some.server.com/some.file -o some.file.txt

Download File from FTP Server:

curl -u anonymous:pwd --remote-name "ftp://hostname/path/to/file/filename"

If the –remote-name is omitted, the content is shown on the console and not saved in a file. May also work if -o and a path/filename is specified under which the downloaded file will be saved.