Skip to content

Instantly share code, notes, and snippets.

@fznsakib
Last active February 4, 2020 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fznsakib/fdd33155e1174db81fe305aa69e822b8 to your computer and use it in GitHub Desktop.
Save fznsakib/fdd33155e1174db81fe305aa69e822b8 to your computer and use it in GitHub Desktop.
Lint/prettify all XML files in current directory (including subdirectories)
function lintall() {
for d in $(find . -maxdepth 1 -type d)
do
find . -name '*.xml' -type f | xargs -I'{}' xmllint --output '{}' --format '{}'
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment