LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-28-2005, 06:02 AM   #1
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Rep: Reputation: 33
using wget


Hi,

I'm wanting to use wget, read the manual pages but not very clear.

Let's suppose I want to download all textfiles located on:
http://www.linuxmanuals.org/

The site is subdivided in

http://www.linuxmanuals.org/software
http://www.linuxmanuals.org/hardware
http://www.linuxmanuals.org/installation
http://www.linuxmanuals.org/security
...


So on the first page (homepage) there are not really textfiles i'm interested in but in the /software /hardware /installation and /security there are direct links to the textfiles.

So if I have figured it out rightly, I need to download all txt files, 1 link deep from http://www.linuxmanuals.org/


by the way is there anyway to save the files it downloads into a specified directory?

Now my question is how will my command look like? something like

wget -A txt -l 1 http://www.linuxmanuals.org/

or am I completely wrong?

Many thx

Wannes

Last edited by bucovaina78; 03-28-2005 at 06:06 AM.
 
Old 03-28-2005, 06:24 AM   #2
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
your example seems to work for me, but I'd suggest using -r and l 2
 
Old 03-28-2005, 06:39 AM   #3
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
-r option

what's the difference between the -A and -r option? the -r seems to work for me and -A not
 
Old 03-28-2005, 07:02 AM   #4
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
from the manpage for wget:
-A acclist --accept acclist
-R rejlist --reject rejlist
Specify comma-separated lists of file name suffixes or patterns to accept or reject (@pxref{Types of Files} for
more details).


-r is recursive!!!
 
  


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
can't wget!! aru_04 Linux - General 5 08-13-2005 05:07 AM
wget noir911 Linux - Newbie 8 07-30-2005 08:57 AM
wget Harp00 Linux - Newbie 4 11-15-2004 07:27 PM
wget toastermaker Linux - Software 4 11-13-2004 10:59 AM
wget filex Linux - Security 4 09-08-2004 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:28 AM.

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