Last Updated: February 25, 2016
·
321
· railla

bash oneliner for a quick sitemap check

Parses < loc /> tag, prints out HTTP response code and the URL:

grep loc sitemap.xml | awk -F '[<>]' '{print $3}' | xargs -I URL curl -sL -w "%{http_code} %{url_effective}\\n" "URL" -o /dev/null