jq counting lenght of an array
echo '[{"username":"user1"},{"username":"user2"}]' | jq '. | length'
Previousgrep using input file as pattern to search other fileNextjq extracting properties to arrays from json row line
Last updated
Was this helpful?
echo '[{"username":"user1"},{"username":"user2"}]' | jq '. | length'
Last updated
Was this helpful?