Last active
April 8, 2022 15:18
-
-
Save flrichar/7f6ebacfb4405988913e327d6ec5adc5 to your computer and use it in GitHub Desktop.
jq and yq functions for bash
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
| ## pipe colorfied jq to less while keeping colors | |
| jql () { jq -C . $1 | less -R ; } | |
| ## pipe colorfied yq to less, keep colors, convert json to yaml | |
| yql () { yq -CP -oy $1 | -R ; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment