|
|
|
|
|
by donut
2012 days ago
|
|
Agreed, gron is a fantastic tool. Earler today I was looking at some deeply nested structures which had leaf nodes with a field named "fileURL", and values that were mostly "https://" but some were "http://". I needed to see how many, etc. cat file.json | gron | grep fileURL | grep http | grep -v https ... and presto, I had only four such nodes. Would've been a ton more work to get there with just jq. |
|
Or, if you can't remember `startswith`: