Skip to content

Instantly share code, notes, and snippets.

@markcam1
Last active June 6, 2019 16:29
Show Gist options
  • Save markcam1/dfeaaf9196dae3332086c087fcfecddc to your computer and use it in GitHub Desktop.
Save markcam1/dfeaaf9196dae3332086c087fcfecddc to your computer and use it in GitHub Desktop.
simple website download script with SHELL
#!/bin/sh
# Mark Cameron: shell script to download website
printf "starting script ...\n\n"
#Variable for file name
FILE=downloaded_site.txt
#Variable for website location
URL=http://example.com
# downloading using WGET
wget $URL -O $FILE
printf "ending script..\n"
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment