4 ms·
I took a leaf out of zfs’s book and make all my apps’ output look like zfs/zpool. Optional header, selectable columns, one line per record, machine readable (r
by gorgoiler 5y ago
I took a leaf out of zfs’s book and make all my apps’ output look like zfs/zpool.
Optional header, selectable columns, one line per record, machine readable (raw) vs human readable numbers.
I’ve nothing against JSON output but I just don’t need it when you can print out two columns, select on the first, and print the second.
$ users -H -o name,hair |
> awk ‘$1 == “gorgoiler” {print $2}’
gray
Admittedly, that awk invocation is so commonly used it could probably be a lot more terse. Also, this whole house of cards collapses when you have data containing spaces.