Created
          September 23, 2014 00:09 
        
      - 
      
 - 
        
Save stephen-puiszis/522ebdd15849bc8e0000 to your computer and use it in GitHub Desktop.  
    Read a Sitemap.xml file and save any links to a file in that same directory. Then CURL every link from that file to read headers. Best used to quickly verify your site map is returning 200s.
  
        
  
    
      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
    
  
  
    
  | grep <sitemap file> --only-matching -E -e 'http(s?):\/\/[^ \"\(\)\<\>]*' >> links.txt | |
| for i in `cat links.txt` ; do curl -I $i ; done (edited) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment