- Input data are multiple json files in
sorted/
with this minimal structure:
{
"dump_finished": "2021-12-14T10:43:42+01:00",
"datasets": [
...
]
}
- Query all
*.json
files insorted
, slurp all results into a large array:
jq "{date: .dump_finished, count: .datasets | length}" sorted/*.json | jq -s
- Output is something like:
[
{
"date": "2014-11-04",
"count": 765
},
{
"date": "2015-06-19",
"count": 804
},
...
{
"date": "2021-12-14T10:43:42+01:00",
"count": 2867
}
]