Quantcast
Channel: Active questions tagged jq - Stack Overflow
Viewing all articles
Browse latest Browse all 585

Using jq to count

$
0
0

Using jq-1.5 if I have a file of JSON that looks like

[{... ,"sapm_score":40.776, ...} {..., "spam_score":17.376, ...} ...]

How would I get a count of the ones where sapm_score > 40?

Thanks,Dan

Update:

I looked at the input file and the format is actually

{... ,"sapm_score":40.776, ...}{..., "spam_score":17.376, ...}...

Does this change how one needs to count?


Viewing all articles
Browse latest Browse all 585

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>