Skip to content

Instantly share code, notes, and snippets.

@riffm
Created May 24, 2012 09:38
Show Gist options
  • Save riffm/2780475 to your computer and use it in GitHub Desktop.
Save riffm/2780475 to your computer and use it in GitHub Desktop.
greping for xmlns shortcuts
sed -r -e "s/xmlns:(\w+)=(\"|')[-:.\/a-zA-Z0-9]+/\n\0\n/g" $(find . -name '*.xsd') | grep 'xmlns:\w\+=' | sed -r -e 's/xmlns://g' -e "s/=(\"|')/\t/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment