Skip to content

Instantly share code, notes, and snippets.

@statguy
Created December 15, 2016 02:02
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 statguy/505da54c22e288715d3aef86973fab18 to your computer and use it in GitHub Desktop.
Save statguy/505da54c22e288715d3aef86973fab18 to your computer and use it in GitHub Desktop.
Bash profile extensions
jsoncatfun() { cat $1 | python -c'import fileinput, json;print(json.dumps(json.loads("".join(fileinput.input())),sort_keys=True, indent=4))'; }
alias jsoncat=jsoncatfun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment