How do I pipe a downloaded file to standard output in bash?

Solution 1:

wget -O - -o /dev/null

Solution 2:

Or use curl, where it's the default behaviour.


Solution 3:

There are other methods you can use instead of wget and curl:

You can use lynx:

# lynx -source


# w3m -dump_source

and libwww-perl comes with a handy program called GET (as well has HEAD and POST, which do what you think they do)