Last active
August 29, 2015 14:04
-
-
Save kyleskrinak/8502294c8e4aea77aabb to your computer and use it in GitHub Desktop.
A very simple and quick way to visit a list of pages. Each line in the list to crawl must not include the root domain.
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 | |
while read line | |
do | |
URL=http://example.dev/$line | |
# echo $URL `curl -s --head $URL | head -n 1` | grep -v 200 # use to find any non-200 results | |
echo $URL `curl -s --head $URL | head -n 1` | |
done < $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment