Last active
March 8, 2017 00:02
-
-
Save alabeduarte/e897bb31d1971bb3440f to your computer and use it in GitHub Desktop.
Download a website entirely to read offline.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _help() { | |
cat <<EOH | |
Usage: ./website_downloader.sh download http://xyz.xpto | |
EOH | |
} | |
case ${1} in | |
download) | |
wget -r -np -k $2 | |
;; | |
*|help|-h) | |
_help | |
;; | |
esac | |
# chmod +x website_downloader.sh | |
# ./website_downloader.sh download http://xyz.xpto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment