LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   wget question (https://www.linuxquestions.org/questions/linux-newbie-8/wget-question-329556/)

JockVSJock 06-02-2005 09:20 AM

wget question
 
Got love wget, instead of manually pointing and clicking to d/l stuff, you just use the command line.

My questions is, I've d/l mp3s from a website, and I only want the mp3s.

For some reason this isn't working. I though the -A was for all files, * for all files that have a .mp3 file format.

Now when I use the next command line

It of course will grab index.html files along with everything else because of the recursive option. I don't want to eat up all of the bandwidth on these sites...so how do I just grab all of the .mp3s from one directory?

thanks

bathory 06-02-2005 09:35 AM

Code:

wget -r -l1 --no-parent -A.mp3 http://thewebsitehere.com/directory/

JockVSJock 06-02-2005 12:47 PM

That worked, thanks!


All times are GMT -5. The time now is 10:45 PM.