Created
January 18, 2017 23:33
-
-
Save MisterDA/ac6087b1adbcfe610442a87cc3f3db5b to your computer and use it in GitHub Desktop.
Projet Ungoliant
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 | |
set -e | |
SITE_DIR=$(echo "$1" | sed -E 's|^(https?\|file)://([^/]*)/.*$|\2|') | |
mkdir -p "httrack" | |
cd "httrack" | |
httrack "$1" -O "httrack" | |
grep -r "$2" "httrack/${SITE_DIR}" --color=auto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment