Skip to content

Instantly share code, notes, and snippets.

@markcam1
Created June 15, 2019 16:55
Show Gist options
  • Save markcam1/800a20088949df44f7ea35e3ccc56e55 to your computer and use it in GitHub Desktop.
Save markcam1/800a20088949df44f7ea35e3ccc56e55 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Mark Cameron: shell script to download website
printf "starting script ...\n\n"
# URL VARIABLE: THIS IS USED TO STORE THE URL (UNIFORM RESOURCE LOCATOR)
URL=https://asciiart.website/index.php?art=animals/horses
# THIS LINE USES WGET SOFTWARE TO DOWNLOAD DOCUMENTS FROM THE INTERNET
wget $URL
# WE PRINT THIS OPTIONAL TEST TO THE COMMAND LINE
printf "ending script..\n"
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment