JC v1.15.0 released – JC converts command output to JSON

Today marks a huge release for jc. Version 1.15.0 now includes a 70 parsers and dozens of new features and parsers. New parsers include: acpi, upower, /usr/bin/time, dpkg -l, rpm -qi, finger, and dir (Windows).

https://github.com/kellyjonbrazil/jc

jc JSONifies the output of many CLI tools and file-types for easier parsing in scripts. This allows further command-line processing of output with tools like jq by piping commands: ls -l /usr/bin | jc --ls | jq '.[] | select(.size > 50000000)' { "filename": "docker", "flags": "-rwxr-xr-x", "links": 1, "owner": "root", "group": "root", "size": 68677120, "date": "Aug 14 19:41" } or using the alternative "magic" syntax: jc ls -l /usr/bin | jq '.[] | select(.size > 50000000)' { "filename": "docker", "flags": "-rwxr-xr-x", "links": 1, "owner": "root", "group": "root", "size": 68677120, "date": "Aug 14 19:41" }

submitted by /u/kellyjonbrazil
[link] [comments]

Read more here: https://www.reddit.com/r/linux/comments/mmetob/jc_v1150_released_jc_converts_command_output_to/

Content Attribution

This content was originally published by /u/kellyjonbrazil at Linux, GNU/Linux, free software..., and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: