Alex Asked: 2009-06-16 02:58:32 +0800 CST2009-06-16 02:58:32 +0800 CST 2009-06-16 02:58:32 +0800 CST How do I pipe a downloaded file to standard output in bash? 772 How is it possible to pipe out wget's downloaded file? If not what alternatives should I use? linux ubuntu bash pipe wget 6 Answers Voted Best Answer pQd 2009-06-16T03:01:06+08:002009-06-16T03:01:06+08:00 wget -O - -o /dev/null http://google.com GodEater 2009-06-16T03:13:45+08:002009-06-16T03:13:45+08:00 Or use curl, where it's the default behaviour. curl http://www.google.com/ http://curl.haxx.se/ David Pashley 2009-06-16T03:54:17+08:002009-06-16T03:54:17+08:00 There are other methods you can use instead of wget and curl: You can use lynx: # lynx -source http://www.google.com w3m: # w3m -dump_source http://www.google.com and libwww-perl comes with a handy program called GET (as well has HEAD and POST, which do what you think they do) # GET http://www.google.com Roger 2011-08-21T06:41:57+08:002011-08-21T06:41:57+08:00 This is how I did it: URL='http://wordpress.org/extend/plugins/akismet/' curl -s "$URL" | egrep -o "http://downloads.wordpress.org/plugin/[^']+" | xargs wget -qO- Jeff Tang 2009-06-16T06:10:27+08:002009-06-16T06:10:27+08:00 Just to add another option: I often use lwp-request, from libwww-perl, for this. It outputs to STDOUT by default and is more likely than curl to be installed on the systems I use (your situation my vary). Phil Huang 2016-01-29T07:37:42+08:002016-01-29T07:37:42+08:00 I suggest to use Aria2. It's powerful downloader. aria2c http://google.com.tw
Or use curl, where it's the default behaviour.
http://curl.haxx.se/
There are other methods you can use instead of wget and curl:
You can use lynx:
w3m:
and libwww-perl comes with a handy program called GET (as well has HEAD and POST, which do what you think they do)
This is how I did it:
Just to add another option: I often use lwp-request, from libwww-perl, for this. It outputs to STDOUT by default and is more likely than curl to be installed on the systems I use (your situation my vary).
I suggest to use Aria2. It's powerful downloader.