LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2004, 07:52 AM   #1
munkeevegetable
LQ Newbie
 
Registered: Oct 2004
Location: Melbourne, VIC, Australia
Distribution: Ubuntu Debian
Posts: 20

Rep: Reputation: 0
wget command help


Hi, got a real newbie question here..
When using wget, what are the wildcards in the command?
it doesn't seem to say anything about wildcards in the help..

i.e. if i want to get pages foo1.html to foo19.html from http://www.randomsite.com/~jim/foo???.html
what are the wildcards i put instead of ???

edit: removed extra q'n /edit

thanks,
--munkeevegetable

Last edited by munkeevegetable; 11-03-2004 at 08:01 AM.
 
Old 11-03-2004, 08:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
wget can't do that... lok at curl though, that'll do exactly what you're after.
 
Old 11-03-2004, 08:02 AM   #3
munkeevegetable
LQ Newbie
 
Registered: Oct 2004
Location: Melbourne, VIC, Australia
Distribution: Ubuntu Debian
Posts: 20

Original Poster
Rep: Reputation: 0
heh, i know that it does it, because my brother always uses wget to save that way.. i just wish i could remember the wildcards he used..
 
Old 11-03-2004, 08:06 AM   #4
munkeevegetable
LQ Newbie
 
Registered: Oct 2004
Location: Melbourne, VIC, Australia
Distribution: Ubuntu Debian
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by munkeevegetable
heh, i know that it does it, because my brother always uses wget to save that way.. i just wish i could remember the wildcards he used..
just remembered, twas maybe images he saved, not websites... not sure.. it works for one website, and recursively for images..
hmmms..
 
Old 11-03-2004, 08:08 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
wget can do recursive gets using the -m option, but i really don't think it can actually handle patterns
 
Old 11-03-2004, 08:08 AM   #6
munkeevegetable
LQ Newbie
 
Registered: Oct 2004
Location: Melbourne, VIC, Australia
Distribution: Ubuntu Debian
Posts: 20

Original Poster
Rep: Reputation: 0
okee doke. thanks for your help
ill have a go.. if it doesnt work, ill just go thru one by one.. or have a look at curl
--m.v
 
Old 11-03-2004, 09:23 AM   #7
kenlinux
LQ Newbie
 
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
In fact....
you can use shell script to do that
For example:

#!/bin/bash

for (( i = 1; i <= 19; i++ ))
do
wget -c -t 0 http://www.randomsite.com/~jim/foo$i.html
done
 
Old 11-03-2004, 01:15 PM   #8
robert644
Member
 
Registered: Aug 2004
Location: internet
Distribution: slackware
Posts: 135

Rep: Reputation: 15
wget -r -l 2 http://www.randomsite.com/~jim/
 
Old 11-03-2004, 06:37 PM   #9
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
Quote:
Originally posted by robert644
wget -r -l 2 http://www.randomsite.com/~jim/
but I believe that will pull everything 2 levels down from that URL, that might be much more than the specific files munkee was looking to grab.... (pls correct me if I'm wrong)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wget command question satimis Linux - Software 3 11-16-2004 06:01 AM
Wget command options help??? tekhead2 Linux - Software 1 06-23-2004 06:58 AM
wget command juanb Linux - General 5 12-11-2003 03:23 PM
wget command not found irs-away Linux - Newbie 4 09-07-2003 10:35 AM
wget command glock19 Linux - General 0 11-29-2001 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration