Created
December 3, 2015 18:54
-
-
Save TylerBrock/b781eb33d7e84ae9a0bf to your computer and use it in GitHub Desktop.
Script to strip enclosing results from Parse data
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
for file in *.json; do | |
jq '.results' < "$file" > "$file.scrubbed" | |
mv "$file" "`basename $file .scrubbed`" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment