News for hackers. Stuff that matters.
Re:“You meant to install ripgrep” by carlhjerpe on Monday October 17, 2022 @05:33PM (#33239797)
"gron | rg", because life is too short to learn jq.

Amazing work on rg!

Re:“You meant to install ripgrep” by tambourine_man on Monday October 17, 2022 @06:11PM (#33240169)
OMG, thank you. jq is great but its syntax is impossible to memorize. This is so much better.
Re:“You meant to install ripgrep” by carlhjerpe on Monday October 17, 2022 @06:17PM (#33240234)
Any time! Yeah jq is great, but my usecase is covered better by these two together.

Truly the Unix philosophy at it's finest. It's the only way I search JSON these days! (or YAML with "yq | gron | rg" to get results, pop into (n)vim and to my thing :)

Re:“You meant to install ripgrep” by pmarreck on Monday October 17, 2022 @08:19PM (#33241404)
Wait, does ripgrep understand json or something??
Re:“You meant to install ripgrep” by burntsushi on Monday October 17, 2022 @08:38PM (#33241544)
No. `gron` understands JSON and flattens it, effectively turning it into line oriented data.