Skip to content

Instantly share code, notes, and snippets.

@TylerBrock
Created December 3, 2015 18:54
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 TylerBrock/b781eb33d7e84ae9a0bf to your computer and use it in GitHub Desktop.
Save TylerBrock/b781eb33d7e84ae9a0bf to your computer and use it in GitHub Desktop.
Script to strip enclosing results from Parse data
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