From 16f52b7bef745097f7076dde76715db378b54343 Mon Sep 17 00:00:00 2001 From: JJ Date: Wed, 19 Mar 2025 14:56:26 +0000 Subject: first commit --- content/snippets/jq-count-json-items.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 content/snippets/jq-count-json-items.md (limited to 'content/snippets/jq-count-json-items.md') 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 +``` -- cgit v1.2.3