4 ms·
> In the same way programs are smart enough to know to render colored output or not, I'd love it if it could dump structured output (or not) The even lower han
by hoherd 3y ago
> In the same way programs are smart enough to know to render colored output or not, I'd love it if it could dump structured output (or not)
The even lower hanging fruit is to implement json output as a command line argument in all cli tools. I would love to see this done for the gnu core utils.
- teddyh 3y agoAt least “du”, “env”, and “printenv” in Coreutils all support the “--null” option to separate output into being NUL-separated instead of being text lines.
- bryanlarsen 3y agoIt was a really pleasant surprise to find the "-j" option to do this for the "ip" command from the iproute2 project.
- mr_mitm 3y agoAFAIK the idea is that if you need that kind of interoperability in unix/gnu, you're supposed to write your tool in C and include some libraries. Clearly not realistic in many use cases.