Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 445 Bytes

wget-Output-flag.md

File metadata and controls

23 lines (17 loc) · 445 Bytes
  • Date : 2017-05-19
  • Tags : #sysadmin #shell

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