Skip to content

Instantly share code, notes, and snippets.

@omunroe-com
Forked from libkazz/gist:2879396
Created October 29, 2018 14:19
Show Gist options
  • Save omunroe-com/c578923a9912093aa0cb3865a18949d5 to your computer and use it in GitHub Desktop.
Save omunroe-com/c578923a9912093aa0cb3865a18949d5 to your computer and use it in GitHub Desktop.
count urls in sitemap.xml.gz
zcat public/sitemap1.xml.gz | ruby -anle 'puts $_.gsub("<url>", "#").gsub(/[^#]*/, "").length'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment