Skip to content

Instantly share code, notes, and snippets.

@stfnhh
Created August 15, 2014 14:30
Show Gist options
  • Save stfnhh/63c491eb0a9dadfed7e8 to your computer and use it in GitHub Desktop.
Save stfnhh/63c491eb0a9dadfed7e8 to your computer and use it in GitHub Desktop.
simple bash http spider
#!/bin/bash
url=$1
if [[ $1 != *http:\/\/* ]]; then
url="http://$1"
fi
wget --spider -r -nv -nd -np $1 2>&1 | ack -o '(?<=URL:)\S+'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment