3 ms·
> But, this prints all 317 resource types on a new line, not super helpful. > So, let's group by and count: > cat 1396-Ledner.json | jq '.entry[].resource.res
by sequoia 6y ago
> But, this prints all 317 resource types on a new line, not super helpful.
> So, let's group by and count:
> cat 1396-Ledner.json | jq '.entry[].resource.resourceType' | sort | uniq -c | sort -nr This gives me a list that looks like this:
This is so funny! We came up with some of the exact same combinations of tools (jq + sort, uniq, wc etc.). I mean, it makes sense so I shouldn't be surprised!