News for hackers. Stuff that matters.
Re:jc: Converts the output of popular command-line tools to ... by rplnt on Friday December 08, 2023 @10:34AM (#38570240)
Wish it would have automatic parser selection by default. Even if just for a (possible) selected subset. Typing `foo | jc | jq ...` would be more convenient than `foo | jc --foo | jq ...`.
Re:jc: Converts the output of popular command-line tools to ... by mikecarlton on Friday December 08, 2023 @11:22AM (#38570759)
It supports `jc foo | jq` which is quite handy. E.g. `jc dig google.com txt | jq '.[]|.answer[]|.data'`
Re:jc: Converts the output of popular command-line tools to ... by kbrazil on Friday December 08, 2023 @12:28PM (#38571589)
Also, `jc` automatically selects the correct /proc/file parser so you can just do `jc /proc/meminfo` or `cat /proc/meminfo | jc --proc` without specifying the actual proc parser (though you can do that if you want)

Disclaimer: I'm the author of `jc`.