
jc
CLI把 dig、ps、ls、ifconfig 等上百种命令的输出及常见文件格式转换成 JSON,便于 agent 用 jq 或脚本可靠解析;也可作为 Python 库使用。
JC
JSON Convert
jc JSONifies the output of many CLI tools, file-types, and common strings
for easier parsing in scripts. See the Parsers section for
supported commands, file-types, and strings.
dig example.com | jc --dig
[{"id":38052,"opcode":"QUERY","status":"NOERROR","flags":["qr","rd","ra"],
"query_num":1,"answer_num":1,"authority_num":0,"additional_num":1,
"opt_pseudosection":{"edns":{"version":0,"flags":[],"udp":4096}},"question":
{"name":"example.com.","class":"IN","type":"A"},"answer":[{"name":
"example.com.","class":"IN","type":"A","ttl":39049,"data":"93.184.216.34"}],
"query_time":49,"server":"2600:1700:bab0:d40::1#53(2600:1700:bab0:d40::1)",
"when":"Fri Apr 16 16:09:00 PDT 2021","rcvd":56,"when_epoch":1618614540,
"when_epoch_utc":null}]
Pipe the output to tools like jq or jello,
or use the "magic" syntax by putting jc in front of the command:
$ dig example.com | jc --dig | jq -r '.[].answer[].data'
93.184.216.34
$ jc dig example.com | jq -r '.[].answer[].data'
93.184.216.34
jc can also be used as a Python library. It returns a dictionary, a list of
dictionaries, or a
lazy iterable of dictionaries
instead of JSON:
>>> import subprocess
>>> import jc
>>>
>>> cmd_output = subprocess.check_output(['dig', 'example.com'], text=True)
>>> data = jc.parse('dig', cmd_output)
>>>
>>> data[0]['answer']
[{'name': 'example.com.', 'class': 'IN', 'type': 'A', 'ttl': 29658, 'data':
'93.184.216.34'}]
For library documentation, use help('jc') or see the
online documentation.
By default, output follows a documented schema for each parser: known numbers,
booleans, and null values are converted, and some parsers add fields such as
epoch timestamps. Use the -r option (or raw=True in parse()) for raw
output that stays closer to the original text. Each parser's schema is linked
from the Parsers table.
Release notes are in the Releases section on Github.
Try jc in the web demo, or run it as a
service with the REST API.
Further Reading
- Bringing the Unix Philosophy to the 21st Century
(why
jcexists) and an interview with Console - Use cases: Bash scripting, Ansible, Saltstack, Nornir, FortiSOAR
- Related:
libxo on FreeBSD,
PowerShell
ConvertTo-Json, Linux CLI apps should have a JSON flag
Installation
Install jc with pip, an OS package manager, or a precompiled binary that
runs from anywhere on your filesystem.
Pip (macOS, linux, unix, Windows)
pip3 install jc
OS Package Repositories
| OS | Command |
|---|---|
| Debian/Ubuntu linux | apt-get install jc |
| Fedora linux | dnf install jc |
| openSUSE linux | zypper install jc |
| Arch linux | pacman -S jc |
| NixOS linux | nix-env -iA nixpkgs.jc or nix-env -iA nixos.jc |
| Guix System linux | guix install jc |
| Gentoo Linux | emerge dev-python/jc |
| Photon linux | tdnf install jc |
| macOS | brew install jc |
| FreeBSD | portsnap fetch update && cd /usr/ports/textproc/py-jc && make install clean |
| Ansible filter plugin | ansible-galaxy collection install community.general |
| FortiSOAR connector | Install from FortiSOAR Connector Marketplace |
For more OS Packages, see https://repology.org/project/jc/versions.
Binaries
For precompiled binaries, see Releases on Github.
Usage
jc reads command output, a file, or a string from STDIN and writes JSON to
STDOUT:
COMMAND | jc [SLICE] [OPTIONS] PARSER
cat FILE | jc [SLICE] [OPTIONS] PARSER
echo STRING | jc [SLICE] [OPTIONS] PARSER
With the "magic" syntax, put jc and its options in front of the command or
/proc file path instead (command aliases and shell builtins are not
supported):
jc [SLICE] [OPTIONS] COMMAND
jc [SLICE] [OPTIONS] /proc/<path-to-procfile>
Output is compact JSON by default. Use -p to pretty-print it.
Parsers
| Argument | Command or Filetype | Documentation |
|---|---|---|
--acpi | acpi command parser | details |
--airport | airport -I command parser | details |
--airport-s | airport -s command parser | details |
--amixer | amixer command parser | details |
--ansible-list-tags | ansible-playbook --list-tags command parser | details |
--apachectl | apachectl -S command parser | details |
--apt-cache-show | apt-cache show command parser | details |
--apt-get-sqq | apt-get -sqq command parser | details |
--arp | arp command parser | details |
--asciitable | ASCII and Unicode table parser | details |
--asciitable-m | multi-line ASCII and Unicode table parser | details |
--authorized-keys | ~/.ssh/authorized_keys file parser | details |
--blkid | blkid command parser | details |
--bluetoothctl | bluetoothctl command parser | details |
--brew-search | brew search command parser | details |
--cbt | cbt (Google Bigtable) command parser | details |
--cef | CEF string parser | details |
--cef-s | CEF string streaming parser | details |
--certbot | certbot command parser | details |
--chage | chage --list command parser | details |
--cksum | cksum and sum command parser | details |
--clf | Common and Combined Log Format file parser | details |
--clf-s | Common and Combined Log Format file streaming parser | details |
--conntrack | conntrack command parser | details |
--crontab | crontab command and file parser | details |
--crontab-u | crontab file parser with user support | details |
--csv | CSV file parser | details |
--csv-ih | CSV implicit header file parser | details |
--csv-s | CSV file streaming parser | details |
--csv-ih-s | CSV implicit header file streaming parser | details |
--curl-head | curl --head command parser | details |
--date | date command parser | details |
--datetime-iso | ISO 8601 Datetime string parser | details |
--debconf-show | debconf-show command parser | details |
--df | df command parser | details |
--dig | dig command parser | details |
--dir | dir command parser | details |
--dmidecode | dmidecode command parser | details |
--dpkg-l | dpkg -l command parser | details |
--du | du command parser | details |
--efibootmgr | efibootmgr command parser | details |
--email-address | Email Address string parser | details |
--env | env command parser | details |
--ethtool | ethtool command parser | details |
--file | file command parser | details |
--find | find command parser | details |
--findmnt | findmnt command parser | details |
--finger | finger command parser | details |
--free | free command parser | details |
--fstab | /etc/fstab file parser | details |
--getfacl | getfacl command parser | details |
--git-diff | git diff --name-status command parser | details |
--git-log | git log command parser | details |
--git-log-s | git log command streaming parser | details |
--git-ls-remote | git ls-remote command parser | details |
--gpg | gpg --with-colons command parser | details |
--group | /etc/group file parser | details |
--gshadow | /etc/gshadow file parser | details |
--hash | hash command parser | details |
--hashsum | hashsum command parser (md5sum, shasum, etc.) | details |
--hciconfig | hciconfig command parser | details |
--history | history command parser | details |
--host | host command parser | details |
--hosts | /etc/hosts file parser | details |
--http-headers | HTTP headers parser | details |
--ics | ics file parser | details |
--id | id command parser | details |
--ifconfig | ifconfig command parser | details |
--iftop | iftop command parser | details |
--ini | INI file parser | details |
--ini-dup | INI with duplicate key file parser | details |
--iostat | iostat command parser | details |
--iostat-s | iostat command streaming parser | details |
--ip-address | IPv4 and IPv6 Address string parser | details |
--ipconfig | ipconfig Windows command parser | details |
--iptables | iptables command parser | details |
--ip-route | ip route command parser | details |
--iw-scan | iw dev [device] scan command parser | details |
--iwconfig | iwconfig command parser | details |
--jar-manifest | Java MANIFEST.MF file parser | details |
--jobs | jobs command parser | details |
--jwt | JWT string parser | details |
--kv | Key/Value file and string parser | details |
--kv-dup | Key/Value with duplicate key file and string parser | details |
--last | last and lastb command parser | details |
--ldd | ldd command parser | details |
--ls | ls command parser | details |
--ls-s | ls command streaming parser | details |
--lsattr | lsattr command parser | details |
--lsb-release | lsb_release command parser | details |
--lsblk | lsblk command parser | details |
--lsmod | lsmod command parser | details |
--lsof | lsof command parser | details |
--lspci | lspci -mmv command parser | details |
--lsusb | lsusb command parser | details |
--m3u | M3U and M3U8 file parser | details |
--mdadm | mdadm command parser | details |
--mount | mount command parser | details |
--mpstat | mpstat command parser | details |
--mpstat-s | mpstat command streaming parser | details |
--needrestart | needrestart -b command parser | details |
--netrc | .netrc file parser | details |
--netstat | netstat command parser | details |
--net-localgroup | net localgroup command parser | details |
--net-user | net user command parser | details |
--nfsiostat | nfsiostat command parser | details |
--nfsiostat-s | nfsiostat command streaming parser | details |
--nftables | nft command parser | details |
--nmcli | nmcli command parser | details |
--nsd-control | nsd-control command parser | details |
--ntpq | ntpq -p command parser | details |
--openvpn | openvpn-status.log file parser | details |
--os-prober | os-prober command parser | details |
--os-release | /etc/os-release file parser | details |
--pacman | pacman command parser | details |
--passwd | /etc/passwd file parser | details |
--path | POSIX path string parser | details |
--path-list | POSIX path list string parser | details |
--pci-ids | pci.ids file parser | details |
--pgpass | PostgreSQL password file parser | details |
--php-fpm | php-fpm -tt command parser | details |
--pidstat | pidstat -H command parser | details |
--pidstat-s | pidstat -H command streaming parser | details |
--ping | ping and ping6 command parser | details |
--ping-s | ping and ping6 command streaming parser | details |
--pip-list | pip list command parser | details |
--pip-show | pip show command parser | details |
--pkg-index-apk | Alpine Linux Package Index file parser | details |
--pkg-index-deb | Debian Package Index file parser | details |
--plist | PLIST file parser | details |
--postconf | postconf -M command parser | details |
--prometheus | Prometheus and OpenMetrics text format parser | details |
--proc | /proc/ file parser | details |
--ps | ps command parser | details |
--resolve-conf | /etc/resolve.conf file parser | details |
--route | route command parser | details |
--route-print | route print command parser | details |
--rpm-qi | rpm -qi command parser | details |
--rsync | rsync command parser | details |
--rsync-s | rsync command streaming parser | details |
--semver | Semantic Version string parser | details |
--sfdisk | sfdisk command parser | details |
--shadow | /etc/shadow file parser | details |
--srt | SRT file parser | details |
--ss | ss command parser | details |
--ssh-conf | ssh config file and ssh -G command parser | details |
--sshd-conf | sshd config file and sshd -T command parser | details |
--stat | stat command parser | details |
--stat-s | stat command streaming parser | details |
--swapon | swapon command parser | details |
--sysctl | sysctl command parser | details |
--syslog | Syslog RFC 5424 string parser | details |
--syslog-s | Syslog RFC 5424 string streaming parser | details |
--syslog-bsd | Syslog RFC 3164 string parser | details |
--syslog-bsd-s | Syslog RFC 3164 string streaming parser | details |
--systemctl | systemctl command parser | details |
--systemctl-lj | systemctl list-jobs command parser | details |
--systemctl-ls | systemctl list-sockets command parser | details |
--systemctl-luf | systemctl list-unit-files command parser | details |
--systemextensionsctl | systemextensionsctl list command parser | details |
--systeminfo | systeminfo command parser | details |
--time | /usr/bin/time command parser | details |
--timedatectl | timedatectl status command parser | details |
--timestamp | Unix Epoch Timestamp string parser | details |
--toml | TOML file parser | details |
--top | top -b command parser | details |
--top-s | top -b command streaming parser | details |
--tracepath | tracepath and tracepath6 command parser | details |
--traceroute | traceroute and traceroute6 command parser | details |
--traceroute-s | traceroute and traceroute6 command streaming parser | details |
--tsv | TSV file parser | details |
--tsv-ih | TSV implicit header file parser | details |
--tsv-s | TSV file streaming parser | details |
--tsv-ih-s | TSV implicit header file streaming parser | details |
--tune2fs | tune2fs -l command parser | details |
--typeset | typeset and declare command parser | details |
--udevadm | udevadm info command parser | details |
--ufw | ufw status command parser | details |
--ufw-appinfo | ufw app info [application] command parser | details |
--uname | uname -a command parser | details |
--update-alt-gs | update-alternatives --get-selections command parser | details |
--update-alt-q | update-alternatives --query command parser | details |
--upower | upower command parser | details |
--upsc | upsc command parser | details |
--uptime | uptime command parser | details |
--url | URL string parser | details |
--ver | Version string parser | details |
--veracrypt | veracrypt command parser | details |
--vmstat | vmstat command parser | details |
--vmstat-s | vmstat command streaming parser | details |
--w | w command parser | details |
--wc | wc command parser | details |
--wg-show | wg show command parser | details |
--who | who command parser | details |
--x509-cert | X.509 PEM and DER certificate file parser | details |
--x509-crl | X.509 PEM/DER certificate revocation list file parser | details |
--x509-csr | X.509 PEM and DER certificate request file parser | details |
--xml | XML file parser | details |
--xrandr | xrandr command parser | details |
--yaml | YAML file parser | details |
--zipinfo | zipinfo command parser | details |
--zpool-iostat | zpool iostat command parser | details |
--zpool-status | zpool status command parser | details |
Options
| Short | Long | Description |
|---|---|---|
-a | --about | About jc. Prints information about jc and the parsers (in JSON or YAML, of course!) |
-C | --force-color | Force color output even when using pipes (overrides -m and the NO_COLOR env variable) |
-d | --debug | Debug mode. Prints trace messages if parsing issues are encountered (use-dd for verbose debugging) |
-h | --help | Help. Use jc -h --parser_name for parser documentation. Use twice to show hidden parsers (e.g. -hh). Use thrice to show parser categories (e.g. -hhh). |
-m | --monochrome | Monochrome output |
-M | --meta-out | Add metadata to output including timestamp, parser name, magic command, magic command exit code, etc. |
-p | --pretty | Pretty format the JSON output |
-q | --quiet | Quiet mode. Suppresses parser warning messages (use -qq to ignore streaming parser errors) |
-r | --raw | Raw output. Provides more literal output, typically with string values and no additional semantic processing |
-s | --slurp | Slurp multiple lines into an array. (use -hhh to find compatible parsers) |
-u | --unbuffer | Unbuffer output |
-v | --version | Version information |
-y | --yaml-out | YAML output |
-B | --bash-comp | Generate Bash shell completion script (more info) |
-Z | --zsh-comp | Generate Zsh shell completion script (more info) |
-X | --xonsh-comp | Generate Xonsh shell completion script (more info) |
Slice
A START:STOP line slice selects which lines of the input to convert, like
Python's slicing.
Lines are numbered from 0 at the start or from -1 at the end, and STOP
is not included. Lines are counted at LF and CRLF line endings; a lone CR does
not start a new line. Slices with negative numbers use more memory.
For example, both of these slices skip the first and last lines:
$ cat table.txt
### We want to skip this header ###
col1 col2
foo 1
bar 2
### We want to skip this footer ###
$ cat table.txt | jc 1:-1 --asciitable
[{"col1":"foo","col2":"1"},{"col1":"bar","col2":"2"}]
$ cat table.txt | jc 1:4 --asciitable
[{"col1":"foo","col2":"1"},{"col1":"bar","col2":"2"}]
| Slice Notation | Input Lines Processed |
|---|---|
START:STOP | lines START through STOP - 1 |
START: | lines START through the rest of the output |
:STOP | lines from the beginning through STOP - 1 |
-START:STOP | START lines from the end through STOP - 1 |
START:-STOP | lines START through STOP lines from the end |
-START:-STOP | START lines from the end through STOP lines from the end |
-START: | START lines from the end through the rest of the output |
:-STOP | lines from the beginning through STOP lines from the end |
: | all lines |
Slurp
String parsers that read a single line (e.g. url and ip-address) can read
many lines with the --slurp option and output an array of results. Use
jc -hhh to see which parsers support it.
$ cat ip-addresses.txt | jc --slurp --ip-address
[<multiple output objects>]
The /proc magic syntax slurps multiple files automatically and adds a _file
field to each output object:
$ jc /proc/*/status
[<multiple output objects>]
With --meta-out, slurped output is wrapped in an object, and input_list
holds the input strings or /proc filenames so you can match each result to
its input:
{
"result": [<multiple output objects>],
"_jc_meta": {
"parser": "url",
"timestamp": 1706235558.654576,
"slice_start": null,
"slice_end": null,
"input_list": [
"http://www.google.com",
"https://www.apple.com",
"https://www.microsoft.com"
]
}
}
Exit Codes
jc exits with 100 on a fatal error, otherwise 0. With the "magic" syntax
(e.g. jc ifconfig eth0), the exit code of the parsed program is added to the
jc exit code, so you can tell where an error came from:
ifconfig exit code | jc exit code | Combined exit code | Interpretation |
|---|---|---|---|
0 | 0 | 0 | No errors |
1 | 0 | 1 | Error in ifconfig |
0 | 100 | 100 | Error in jc |
1 | 100 | 101 | Error in both ifconfig and jc |
The -M (--meta-out) option also adds the program's exit code to the
output in the _jc_meta object:
$ jc --meta-out -p ping -c2 192.168.1.252
{
"destination_ip": "192.168.1.252",
"data_bytes": 56,
"pattern": null,
"destination": "192.168.1.252",
"packets_transmitted": 2,
"packets_received": 0,
"packet_loss_percent": 100.0,
"duplicates": 0,
"responses": [
{
"type": "timeout",
"icmp_seq": 0,
"duplicate": false
}
],
"_jc_meta": {
"parser": "ping",
"timestamp": 1661357115.27949,
"magic_command": [
"ping",
"-c2",
"192.168.1.252"
],
"magic_command_exit": 2
}
}
$ echo $?
2
Colors
Set custom colors with the JC_COLORS environment variable, as four
comma-separated values:
JC_COLORS=<keyname_color>,<keyword_color>,<number_color>,<string_color>
Colors are: black, red, green, yellow, blue, magenta, cyan,
gray, brightblack, brightred, brightgreen, brightyellow, brightblue,
brightmagenta, brightcyan, white, or default. For example, the default
colors are JC_COLORS=blue,brightblack,magenta,green (the same as
JC_COLORS=default,default,default,default).
Set the NO_COLOR environment variable to any value
to disable colors. The -C option forces color output and overrides both
NO_COLOR and -m.
Streaming Parsers
Streaming parsers (e.g. ls-s and ping-s) output
JSON Lines as the input arrives instead of waiting
for all of it. This uses much less memory on large inputs (e.g. ls -lR /).
Note: Streaming parsers cannot be used with the "magic" syntax
Ignoring Errors
To keep a long-running pipeline going when a line can't be parsed, use the
-qq option (or ignore_exceptions=True in parse()). Each output object
then gets a _jc_meta object with a success field. Lines that failed also
get error and line fields.
Successfully parsed line with -qq option:
{
"command_data": "data",
"_jc_meta": {
"success": true
}
}
Unsuccessfully parsed line with -qq option:
{
"_jc_meta": {
"success": false,
"error": "error message",
"line": "original line data"
}
}
Unbuffering Output
When jc output is piped to another program, the OS buffers it (usually about
4KB), so slow input like ping can look stuck. Use the -u option to unbuffer
the output:
$ ping 1.1.1.1 | jc --ping-s -u | jq
{"type":"reply","pattern":null,"timestamp":null,"bytes":"64","response...}
{"type":"reply","pattern":null,"timestamp":null,"bytes":"64","response...}
...
Note: Unbuffered output can be slower for large data streams.
Using Streaming Parsers as Python Modules
Streaming parsers take any iterable of lines (e.g. sys.stdin or
str.split('\n')) and return a lazy iterable. Loop through it or use
next():
import jc
result = jc.parse('ls_s', ls_command_output.split('\n'))
for item in result:
print(item["filename"])
Parser Plugins
Parser plugins go in the jcparsers folder of your local app data directory:
- Linux/unix:
$HOME/.local/share/jc/jcparsers - macOS:
$HOME/Library/Application Support/jc/jcparsers - Windows:
$LOCALAPPDATA\jc\jc\jcparsers
A plugin is a standard Python module. Use
jc/parsers/foo.py
or jc/parsers/foo_s.py (streaming)
as a template. Plugin filenames must be valid Python module names (starting
with a letter, and only letters, digits, and underscores). Dependencies can be
placed in the jc folder above jcparsers. Local plugins may override
built-in parsers.
Note: The application data directory follows the XDG Base Directory Specification
Caveats
Locale
For best results set the locale environment variables to C or
en_US.UTF-8 by modifying the LC_ALL variable:
$ LC_ALL=C date | jc --date
You can also set the locale variables individually:
$ export LANG=C
$ export LC_NUMERIC=C
On some older systems UTF-8 output will be downgraded to ASCII with \u
escape sequences if the C locale does not support UTF-8 encoding.
Timezones
Some parsers have calculated epoch timestamp fields added to the output. Unless
a timestamp field name has a _utc suffix it is considered naive. (i.e. based
on the local timezone of the system the jc parser was run on).
If a UTC timezone can be detected in the text of the command output, the
timestamp will be timezone aware and have a _utc suffix on the key name.
(e.g. epoch_utc) No other timezones are supported for aware timestamps.
Line Endings
jc passes input to the parser without translating line endings, whether it
comes from STDIN, a "magic" command, or a /proc file. All line-based
parsers split lines at LF and CRLF line endings only, so other characters that
can appear inside a value, such as a lone CR, form feed, or Unicode line separator, stay
part of that line. Parsers for file formats that can use CR-only line endings (csv,
hosts, jar-manifest, and m3u) also accept a lone CR as a line ending.
Streaming parsers split STDIN lines the same way (LF and CRLF only). Bytes
in STDIN that are not valid UTF-8 are shown as backslash escapes (e.g.
\xff) instead of stopping the parser.
Use In Other Shells
jc works in most shells, and some modern shells can load JSON directly. For
example, in NGS (Next Generation Shell):
myvar = ``jc dig www.google.com``[0].answer[0].data
For other shells, see this wiki page.
Compatibility
jc requires Python 3.6 or newer. Some parsers (e.g. dig, xml, csv) work
on any platform. Parsers for platform-specific output print a warning on an
unsupported platform. Run jc -ap to see each parser's compatibility.
You can still use a parser on another platform, for example to parse a saved
Linux lsof output on macOS or Windows. Use the -q option (or quiet=True
in parse()) to hide the warning:
cat lsof.out | jc -q --lsof # Windows: type lsof.out | jc -q --lsof
Contributions
Contributions are welcome! Use the
jc/parsers/foo.py
or jc/parsers/foo_s.py (streaming)
parser as a template and submit a pull request. See the
Contributing Guidelines
for more information.
Examples
Here is an example of jc output. See EXAMPLES
or the parser documentation for many more.
ps
ps axu | jc -p --ps # or: jc -p ps axu
[
{
"user": "root",
"pid": 1,
"cpu_percent": 0.0,
"mem_percent": 0.1,
"vsz": 128072,
"rss": 6784,
"tty": null,
"stat": "Ss",
"start": "Nov09",
"time": "0:08",
"command": "/usr/lib/systemd/systemd --switched-root --system --deseria..."
},
{
"user": "root",
"pid": 2,
"cpu_percent": 0.0,
"mem_percent": 0.0,
"vsz": 0,
"rss": 0,
"tty": null,
"stat": "S",
"start": "Nov09",
"time": "0:00",
"command": "[kthreadd]"
},
{
"user": "root",
"pid": 4,
"cpu_percent": 0.0,
"mem_percent": 0.0,
"vsz": 0,
"rss": 0,
"tty": null,
"stat": "S<",
"start": "Nov09",
"time": "0:00",
"command": "[kworker/0:0H]"
}
]
© 2019-2026 Kelly Brazil
相關資源

jq
CLI轻量的命令行 JSON 处理器,用简洁的过滤表达式切片、筛选、映射与转换 JSON,零运行时依赖,是 agent 解析接口返回与日志的常用工具。
jqlang/jq36.5k
dasel
CLI用同一套选择器语法查询、修改和转换 JSON、YAML、TOML、XML、CSV、HCL、INI 等格式的数据,可以直接改写配置文件,也能在格式之间互转,适合 agent 在脚本里处理结构化数据。单个无运行时依赖的二进制文件,用法类似 jq / yq。
TomWright/dasel8.2k
yq
CLI类 jq 语法的轻量命令行处理器,可读取、修改和转换 YAML、JSON、XML、INI、CSV 等格式,支持原地编辑配置文件,单一 Go 二进制无依赖。
mikefarah/yq16.4k
VisiData
CLI终端里的表格数据浏览与整理工具,能打开 CSV、JSON、Excel、SQLite 等数十种格式,做筛选、排序、透视和频次统计;--batch 模式可无界面回放操作或转换文件格式。
saulpw/visidata9.5k
mycli
CLI带智能补全与语法高亮的 MySQL 终端客户端,兼容 MariaDB、TiDB 等;支持 --execute 与批处理模式,可按 CSV 或表格格式输出查询结果,便于 agent 直接执行 SQL。
dbcli/mycli12k
Miller
CLI像 awk、sed、cut、join、sort 一样处理 CSV、TSV、JSON 等结构化数据,按字段名操作,支持清洗、聚合统计、格式转换与美化输出。命令为 mlr,Go 编写零运行时依赖。
johnkerl/miller10.1k