Created
December 15, 2016 02:02
-
-
Save statguy/505da54c22e288715d3aef86973fab18 to your computer and use it in GitHub Desktop.
Bash profile extensions
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
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