LinuxQuestions.org
Help answer threads with 0 replies.
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 01-21-2009, 10:55 PM   #1
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Rep: Reputation: 30
Question Simple question on wget


I'm trying to download a site but I only want to download the files named 'forms'.

There are a bunch of forms I need to download and they are all in sub-directories; such as:

/documents/forms/0001/forms
/documents/forms/0002/forms
/documents/forms/0003/forms
/documents/forms/0004/forms

There are other files in the directories but I want to ignore them and I want to keep the directory structure. Any suggestions?

Code:
wget -r -Aforms -erobots=off http://mysite.com/documents/forms/
 
Old 01-21-2009, 11:15 PM   #2
gerowen
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 795

Rep: Reputation: 57
This looks like you might be able to put grep in there, maybe a wildcard, ummmm

Code:
wget -c http://www.mysite.com/documents/forms/0001/forms*
Maybe?
 
Old 01-21-2009, 11:46 PM   #3
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Original Poster
Rep: Reputation: 30
That didn't work either.

Code:
root@siduxbox:/var/log/site# wget -c http://mysite.com/forms/00001/*/forms*
Warning: wildcards not supported in HTTP.
--00:24:34--  http://mysite.com/forms/00001/*/forms*
           => `forms*'
Connecting to xxx.xxx.xxx.xxx:80... connected.
HTTP request sent, awaiting response... 404 Not Found
00:24:35 ERROR 404: Not Found.

root@siduxbox:/var/log/site#
 
Old 01-22-2009, 02:17 PM   #4
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Original Poster
Rep: Reputation: 30
Any suggestions on how to download the files when they have no extension?
 
  


Reply

Tags
recursive, wget


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
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 02:03 PM
wget question JockVSJock Linux - Newbie 2 06-02-2005 12:47 PM
simple wget question hcclnoodles Linux - Software 2 09-29-2004 06:25 AM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 09:03 PM
wget question satimis Linux - Software 4 07-14-2003 04:25 AM

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

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