Skip to content

Instantly share code, notes, and snippets.

@jeremyf
Created June 2, 2017 16:59
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 jeremyf/289b0e323ff51b98990cd05286f0367a to your computer and use it in GitHub Desktop.
Save jeremyf/289b0e323ff51b98990cd05286f0367a to your computer and use it in GitHub Desktop.
Diff two files using gorn
# Transform JSON (from a file, URL, or stdin) into discrete assignments to make it greppable
for file in new-*; do diff <(gron "`echo $file | sed  's/new-//'`") <(gron $file) >> diffs.txt; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment