Last active
February 4, 2020 12:19
-
-
Save fznsakib/fdd33155e1174db81fe305aa69e822b8 to your computer and use it in GitHub Desktop.
Lint/prettify all XML files in current directory (including subdirectories)
This file contains hidden or 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
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