Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


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

Rep: Reputation: 15

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?

I need this in CLI too as there is no GUI
Old 09-08-2006, 02:21 AM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
Does this work?
wget -r -l1 --no-parent -A.ghj
Old 09-08-2006, 02:26 AM   #3
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:
wget -r -l 0 --accept *.ghj
Old 09-10-2006, 06:44 PM   #4
Registered: Jan 2003
Location: AU
Distribution: Whatever - mainly Red Hat
Posts: 32

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


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
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 > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration