Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-16-2005, 11:55 AM   #1
Mike Davies
Registered: Jul 2004
Distribution: Custom Linux 4/Busybox. Fedora 22, Raspberry Pi
Posts: 98

Rep: Reputation: 15
Given a URL how to grab a copy of the file from a command prompt ?

Iím looking for a command line type program that I can give a (HTTP URL to and itíll go off, retrieve the page for me, and either let me save it in a file I specified with another argument, or let me save the output with pipes etc.

The page I want is plain text, I donít need any fancy formatting or anything. I just want to ďmirrorĒ a copy of a plain text file.

I know a simple PERL program can do this, but for reasons best known to my ISP, they have removed these library features from PERL.

The remote system Iím retrieving from does not support FTP access.

Anyone got any brilliant suggestions ?
Old 07-16-2005, 12:04 PM   #2
Registered: Jun 2005
Posts: 96

Rep: Reputation: 15

if you can view the page in a browser you can download it with wget.
there are many options (man wget) and this is a very powerful tool (at least for me)

for downloading a single (txt) page:
hope this helps

[EDIT: disabled url parsing]

Last edited by mhallbiai; 07-16-2005 at 12:05 PM.
Old 07-16-2005, 12:46 PM   #3
Mike Davies
Registered: Jul 2004
Distribution: Custom Linux 4/Busybox. Fedora 22, Raspberry Pi
Posts: 98

Original Poster
Rep: Reputation: 15
Many thanks. I knew there must be something. Seems to work OK

Thanks again.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grab Filename on the end of a (Download) URL hitman_et Programming 3 12-02-2005 05:52 AM
How do you copy and paste a file from a command prompt? thenewguy05 Linux - Newbie 6 07-13-2004 04:41 PM
copy command with out prompt imsajjadali Red Hat 4 05-31-2004 12:42 AM
Grab prompt while booting Redhat Linux shehazab Linux - Software 0 10-27-2003 12:44 AM
How to play a wav file from the Command Prompt arraman Linux - General 1 08-02-2001 08:13 AM > Forums > Linux Forums > Linux - General

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