3 ms·
It's pretty rare in my day-to-day work to deal with flat, string-delimited text files. This advice would be more actionable for me if there were more shell too
by sthatipamala 11y ago
It's pretty rare in my day-to-day work to deal with flat, string-delimited text files.
This advice would be more actionable for me if there were more shell tools that operated on data structures (e.g. objects represented as JSON).
- conradev 11y agoSomething like this? https://stedolan.github.io/jq/ https://stedolan.github.io/jq/
- atsaloli 11y agoOr this: https://github.com/trentm/json https://github.com/trentm/json (npm install -g json).
- sthatipamala 11y agoYeah, I see JQ as the grep/sed of JSON. If there were a curl-analogue that constructed HTTP requests from its output, it would take me a lot of the way there. But more generally, I'm dealing all the time with a hodgepodge of json, csv, yaml, POM files, git logs, whatever. We need more tools that understand the semantics of data.