This is becoming a really crowded space. Some other similar tools that make slightly different design choices and that have variable envisioned use cases:
I'd argue this is more about quacking like a PowerShell than manipulating xSV/JSON in the pipeline. So here's my quick bunch of links that show the demand for that.
Here people emulate formatted and filtered ps(1) using GVariants and a bunch of CLI tools:
Those who fail to understand powershell are condemned to recreate it poorly.
It'd be great for GNU to create a standard for native structured output (as well as a converter tool like the one in this post), then have other tools be able to do it.
But realistically, pwsh is Open Source, runs just fine on Unix boxes and does this now.
Comments
This is becoming a really crowded space. Some other similar tools that make slightly different design choices and that have variable envisioned use cases:
- https://github.com/dkogan/vnlog
- https://csvkit.readthedocs.io/
- https://github.com/johnkerl/miller
- https://github.com/BurntSushi/xsv
- https://github.com/eBay/tsv-utils-dlang
- https://stedolan.github.io/jq/
- http://harelba.github.io/q/
- https://github.com/BatchLabs/charlatan
- https://github.com/dinedal/textql
- https://github.com/dbohdan/sqawk
(disclaimer: vnlog is my tool)
I'd argue this is more about quacking like a PowerShell than manipulating xSV/JSON in the pipeline. So here's my quick bunch of links that show the demand for that.
Here people emulate formatted and filtered ps(1) using GVariants and a bunch of CLI tools:
https://blogs.gnome.org/alexl/2012/08/10/rethinking-the-shel...
Here people use SQL to query and format data right from the shell:
https://github.com/jhspetersson/fselect
https://github.com/facebook/osquery
Also, libxo is a library that allows tools like ls(1) in FreeBSD to generate data in various formats (e.g. JSON):
https://wiki.freebsd.org/LibXo
(edit: formatting)
There actually far more more tools created so far, for example
- https://github.com/adamwiggins/rush
- https://github.com/xonsh/xonsh
Its amazing that people still try this nowdays that pwsh solved it for all.
Those who fail to understand powershell are condemned to recreate it poorly.
It'd be great for GNU to create a standard for native structured output (as well as a converter tool like the one in this post), then have other tools be able to do it.
But realistically, pwsh is Open Source, runs just fine on Unix boxes and does this now.
Amen to that
Also:
- https://github.com/benbernard/RecordStream