I am downloading a file from www.examplesite.com/textfile.txt
When running the following command
wget www.examplesite.com/textfile.txt
the file is saved as textfile
. How can I save it as newfile.txt
?
Use the -O file
option.
E.g.
wget google.com
...
16:07:52 (538.47 MB/s) - `index.html' saved [10728]
vs.
wget -O foo.html google.com
...
16:08:00 (1.57 MB/s) - `foo.html' saved [10728]