#TIL : wget Output flag

May 19, 2017 4 mins read

wget Output flag

-O means output

$ # output file will be index.html or based on header filename
$ wget -O www.abc.xyz
$ # output file will be filename.html
$ wget -O filename.html www.abc.xyz
$ # output to stdout
$ wget -O- www.abc.xyz
$ wget -O- https://gist.githubusercontent.com/khanhicetea/4fa9f5103cd7fbc2d2270abce05c9c2b/raw/helloworld.sh | bash
comments powered by Disqus