wget
Dont know if this is the right place to ask this question but by problem is i'm trying to download a file from a http site but the file name changes only the extention stays the same - lets say the extention is ghj for example.
so effectively i want something like this (but it doesn't work) any ideas? Code:
wget http://website.com/dir/*.ghj |
Does this work?
Code:
wget -r -l1 --no-parent -A.ghj http://website.com/dir/ |
Have a look at the --accept and/or --reject options to wget in the man page. Something like this should do it:
Code:
wget -r -l 0 --accept *.ghj http://website.com/dir/ |
Thanks guys - both options work :)
|
All times are GMT -5. The time now is 12:19 PM. |