Created
January 25, 2019 16:55
-
-
Save shturm/e185f0b6f91380cc2b22ba2a01dfeb6c to your computer and use it in GitHub Desktop.
wget a page recursively or not
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
#!/bin/bash | |
echo "Getting $2 levels of $1" | |
if [ "$2" = "" ]; then | |
wget -k -p -nc -r -l 1 $1 | |
exit | |
fi | |
wget -k -p -nc -r -l $2 $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment