Last active
July 10, 2023 12:48
-
-
Save peterhel/4e39d76445d1d98d0aec4ba7ccf6a967 to your computer and use it in GitHub Desktop.
sort-json
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
| DSTPATH="path/to/file.json" CONTENT="$(cat ${DSTPATH})"; echo "$CONTENT" | jq --sort-keys > $DSTPATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment