The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with wget vadharah Shell Programming and Scripting 2 03-29-2008 10:42 PM
wget & rapidshare trolis Shell Programming and Scripting 1 02-08-2008 05:59 AM
Wget Question ... Help! gseyforth Shell Programming and Scripting 0 02-04-2008 03:22 PM
wget help djembeplayer Shell Programming and Scripting 0 04-06-2007 07:33 AM
wget to do ftp between different server vanex Shell Programming and Scripting 1 11-30-2003 12:23 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-08-2004
photon's Avatar
Registered User
 

Join Date: Jul 2002
Posts: 138
Stumble this Post!
wget -r

I have noticed a lot of expensive books appearing
online so I have decided to copy them to CD.

I was going to write a program in java to do this,
but remembered that wget GNU program some of
you guys were talking about.

Instead of spending two hours or so writing a
program to do this. I am going to download
wget and do a one line command, but I want
to make sure that one liner is correct or I will
recursively use up all my hard drive.

The web site is for example http://bb.book.com/somebook

So I will run this command
Code:
wget -r -Dwebsite.com http://bb.book.com/somebook/
And copy all files linked to in this domain. The whole book!

Do you have any suggestions?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-08-2004
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,795
Stumble this Post!
A lot of those books are probably Linux books like
'Advanced Linux Programming' or stuff at tldp.org.

What you will end up with is a big directory of files
These books are not going away anytime soon.

And yes your syntax is correct, but you will create a directory tree full of (possibly) loads of files.

You should probably use something like
Code:
wget -r -k -l 5
So you can view the files offline. The -l limits the number of subdirectories.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0