Created
September 26, 2011 15:49
-
-
Save lotsofcode/1242554 to your computer and use it in GitHub Desktop.
Spider response header for comma separated urls
This file contains hidden or 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 | |
| THEROOTURL="http://www.domain.com" | |
| THEPATHS="foo,bar,rar.htm,car.txt" | |
| IFS="," | |
| for THEPATH in $THEPATHS; do | |
| echo "------------------------------------------------------------"; | |
| echo "$THEROOTURL/$THEPATH"; | |
| wget $THEROOTURL/$THEPATH --spider 2>&1 | grep "HTTP" | |
| done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could this be more generic?