Created
August 11, 2021 08:37
-
-
Save kibotu/c728ff8e80eca995c6cfff72c72cd1bd to your computer and use it in GitHub Desktop.
Validating all jsons in folder
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
#!/usr/bin/env bash | |
set -e | |
set -x | |
find . -type f -name "*.json" -print0 | xargs -0 -I {} sh -c "echo Validating \"{}\"; cat \"{}\" | jq ." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment