Wget: Difference between revisions
From Leo's Notes
This page was last edited on 21 April 2013, at 20:24.
| Line 11: | Line 11: | ||
[[Category:FreeBSD]] | [[Category:FreeBSD]] | ||
[[Category:TipsnTricks]] | [[Category:TipsnTricks]] | ||
== Save to Directory == | |||
Use the <code>-P</code> to specify the prefix of the output file. | |||
wget -P /tmp http://google.ca/ | |||
Revision as of 20:24, 21 April 2013
wget to console
Use the -O - option to output contents to the console.
wget -O - http://google.ca
Since the contents go to stdout, you can pipe it to a shell:
wget -O - http://scripthost.local/fix_graphics.sh | sh
Save to Directory
Use the -P to specify the prefix of the output file.
wget -P /tmp http://google.ca/