Skip to content

Instantly share code, notes, and snippets.

@guyhughes
Created November 30, 2015 00:43
Show Gist options
  • Save guyhughes/735b90b4568761be9312 to your computer and use it in GitHub Desktop.
Save guyhughes/735b90b4568761be9312 to your computer and use it in GitHub Desktop.
for file in *.json; do
if $(cat $file | json -n); then
printf "\r[OK] $file"
else
echo "[ERROR] $file FAILED"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment