til

#TIL : wget Output flag

I learned on 2017-05-19 about shell, sysadmin

-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

Enjoyed this?

Leave a kudo — it means a lot.

0