I am downloading a file using the wget
command. But when it downloads to my local machine, I want it to be saved as a different filename.
For example: I am downloading a file from www.examplesite.com/textfile.txt
I want to use wget
to save the file textfile.txt
on my local directory as newfile.txt
. I am using the wget
command as follows:
wget www.examplesite.com/textfile.txt
wget -O newfile.txt
. – Mechanical snailwget -o
will output log information to a file.wget -O
will output the downloaded content.man wget
will tell you all of this and more. – Andy Ross