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
Written by Anka Sirota
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Curl
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#