|
|
|
|
|
by Arnavion
2287 days ago
|
|
libxo is doing a good job for FreeBSD. It would be nice if Linux also adapts that, or something similar, one day. Eg I have a script that needs output from netstat, and `netstat -bin --libxo json | jq ...` is a great way to get that info instead of scraping the human-readable output. |
|
FYI, `jc netstat` also generates JSON output for `netstat`.
(disclosure: I'm the author of `jc`)
While I'm at it... check out `jtbl` on my github which prints the JSON or JSON Lines output to a table in your terminal.
https://github.com/kellyjonbrazil/jc
https://github.com/kellyjonbrazil/jtbl