Last active
February 5, 2021 10:53
-
-
Save RuchirChawdhry/db707d910b59e59c8ba4e3a3f2994bee to your computer and use it in GitHub Desktop.
Parses urls in a sitemap to stdout. Must have xmlstarlet installed.
This file contains 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
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