diff options
author | JJ <nicetry@noemail.com> | 2025-03-19 14:56:26 +0000 |
---|---|---|
committer | JJ <nicetry@noemail.com> | 2025-03-19 14:56:26 +0000 |
commit | 16f52b7bef745097f7076dde76715db378b54343 (patch) | |
tree | cfcacda8adced2059dcc120d2bc2446d3c4f960a /content/snippets/jq-count-json-items.md |
first commit
Diffstat (limited to 'content/snippets/jq-count-json-items.md')
-rw-r--r-- | content/snippets/jq-count-json-items.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/content/snippets/jq-count-json-items.md b/content/snippets/jq-count-json-items.md new file mode 100644 index 0000000..1093bfb --- /dev/null +++ b/content/snippets/jq-count-json-items.md @@ -0,0 +1,9 @@ +--- +title: Count items in JSON file using jq +description: Count items in JSON file using jq +tags: ["jq", "commandline"] +--- + +```console +jq -s '. | length' sample_data.json +``` |