Friday, October 14, 2011

redirect wget output to stdout



The following command runs wget and sends the output to STDOUT instead of save to a file. Sometimes it useful for testing a URL's output.
wget -q -O - http://www.example.com/file.html

-q  - Turn off Wget's output. (don't print  http-headers ans wget information)
-O - Output file .  If - is used as file, documents will be printed to  standard output, disabling link conversion

No comments: