LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   wget (http://www.linuxquestions.org/questions/linux-desktop-74/wget-481506/)

friskydrifter 09-08-2006 02:02 AM

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
I need this in CLI too as there is no GUI

gilead 09-08-2006 02:21 AM

Does this work?
Code:

wget -r -l1 --no-parent -A.ghj http://website.com/dir/

zeitounator 09-08-2006 02:26 AM

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/

friskydrifter 09-10-2006 06:44 PM

Thanks guys - both options work :)


All times are GMT -5. The time now is 06:26 AM.