LinuxQuestions.org
Visit Jeremy's Blog.
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 03-03-2005, 12:14 PM   #1
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Rep: Reputation: 30
wget issue, basic but typical


Dear All,


I am writting some script in which i need to download the contents of "C" directory of path "/A/B/C/" which resides on web

so tried this

#wget -l1 -r -A "*.txt" http://localhost/A/B/C/

it is downloading the full path as
/A/B/C/a.txt and in my currentd directory showing directory A which contains directory B and which further contains C and which contains a.txt file


but i need only text file a.txt should be downloaded except the full path to that file , so, what are the possible ways to do that , any options available in wget or not . i tried it but couldn't able to found out.

If something is not clear in above question then feel free to ask, i wil try to elaborate

Any help appreciated,


-jack
 
Old 03-03-2005, 12:21 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You probably want the --no-directories option, if I understand you correctly.
 
Old 03-03-2005, 12:31 PM   #3
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
Thanks Matir !!!!!!!!


Great !!!!!!!!!



-jack
 
Old 03-03-2005, 03:22 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
No problem, glad I could help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
konqueror not browsing web (it is not the typical file association issue) KimVette Linux - Software 3 05-07-2005 02:52 AM
Basic piping issue belorion Programming 3 12-16-2004 07:07 PM
wget issue Equin Linux - General 0 10-17-2004 06:28 PM
linksys 32mb usb key - basic kernel issue d_t_baker Linux - Hardware 1 10-23-2003 04:44 AM
Typical newbie questions newbietolinux Linux - Newbie 19 12-05-2001 06:34 AM

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

All times are GMT -5. The time now is 02:14 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