I am running into a weird issue for the past days.
I have a simple script that downloads files with wget as follows:
Code: Select all
wget -r -np -nd http://website.com/document{01..20}.pdf
wget -r -np -nd http://somesite.com/document{01..20}.pdf
wget -r -np -nd http://anothersite.com/document{01..20}.pdf
Code: Select all
--2018-08-29 18:54:41-- http://website.com/document%7B01..20%7D.pdf
Resolving website.com
Connecting to website.com... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-08-29 18:54:41 ERROR 404: Not Found.
When I copied the lines from the file and ran from the terminal, it executed without any errors:
Code: Select all
wget -r -np -nd http://website.com/document{01..20}.pdf ; wget -r -np -nd http://somesite.com/document{01..20}.pdf ;wget -r -np -nd http://anothersite.com/document{01..20}.pdf
Thank you.
Tolga