Redirect wget output to screen (STDOUT)

wget is a great tool for grabbing web pages from the command line, but one issue is it downloads the file and saves to the local directory.  Some times you just want to see the output of what is retrieved.  To do this, use the following command:

wget -qO- http://www.mywebsite.com/file.htm

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.


Switch to our mobile site