Skip to content

Instantly share code, notes, and snippets.

@kyleskrinak
Last active August 29, 2015 14:04
Show Gist options
  • Save kyleskrinak/8502294c8e4aea77aabb to your computer and use it in GitHub Desktop.
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.
#!/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