LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 09-08-2006, 02:02 AM   #1
friskydrifter
Member
 
Registered: Jan 2003
Location: AU
Distribution: Whatever - mainly Red Hat
Posts: 32

Rep: Reputation: 15
wget


Dont know if this is the right place to ask this question but by problem is i'm trying to download a file from a http site but the file name changes only the extention stays the same - lets say the extention is ghj for example.

so effectively i want something like this (but it doesn't work) any ideas?

Code:
wget http://website.com/dir/*.ghj
I need this in CLI too as there is no GUI
 
Old 09-08-2006, 02:21 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Does this work?
Code:
wget -r -l1 --no-parent -A.ghj http://website.com/dir/
 
Old 09-08-2006, 02:26 AM   #3
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Have a look at the --accept and/or --reject options to wget in the man page. Something like this should do it:
Code:
wget -r -l 0 --accept *.ghj http://website.com/dir/
 
Old 09-10-2006, 06:44 PM   #4
friskydrifter
Member
 
Registered: Jan 2003
Location: AU
Distribution: Whatever - mainly Red Hat
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks guys - both options work
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
about wget spx2 Linux - Newbie 7 12-19-2005 03:37 AM
wget?? Solvaut Linux - Newbie 9 08-14-2005 11:10 PM
can't wget!! aru_04 Linux - General 5 08-13-2005 05:07 AM
Can't use wget ust Linux - Software 6 08-11-2005 09:59 AM
wget ? maybe wesw02 Linux - Software 3 11-24-2004 12:25 AM


All times are GMT -5. The time now is 08:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration