Skip to content

Instantly share code, notes, and snippets.

@mcpar-land
Created May 14, 2026 16:15
Show Gist options
  • Select an option

  • Save mcpar-land/47d2f9cb43cafdd5cd4e72620d65e528 to your computer and use it in GitHub Desktop.

Select an option

Save mcpar-land/47d2f9cb43cafdd5cd4e72620d65e528 to your computer and use it in GitHub Desktop.
Find all xml tags
# You can use this to find all the tags present in a set of XML files.
# Useful for determining a schema while also spotting tags that are very uncommon.
rg "<([a-zA-Z]+)" . -g "*.xml" -r '$1' -NoI | sort | uniq -c | sort -nr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment