Last active
March 23, 2024 22:33
-
-
Save umutbasal/aba6dc5e6bfdaa7a1fb484283c8794fc to your computer and use it in GitHub Desktop.
interactive jq
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
# jqw data.json | |
jqw () | |
{ | |
echo '' | fzf --print-query --preview "cat $1 | jq {q}" | |
} | |
# fzi "cat a.json | jq {q}" | |
# fzi "cat a.json | awk {q}" | |
fzi () | |
{ | |
echo '' | fzf --print-query --preview $1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment