Skip to content

Instantly share code, notes, and snippets.

@RuchirChawdhry
Last active February 5, 2021 10:53
Show Gist options
  • Save RuchirChawdhry/db707d910b59e59c8ba4e3a3f2994bee to your computer and use it in GitHub Desktop.
Save RuchirChawdhry/db707d910b59e59c8ba4e3a3f2994bee to your computer and use it in GitHub Desktop.
Parses urls in a sitemap to stdout. Must have xmlstarlet installed.
curl -s $1 | xmlstarlet sel -t -v "//*[local-name()='loc']/text()"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment