aboutsummaryrefslogtreecommitdiff
path: root/content/snippets/jq-count-json-items.md
diff options
context:
space:
mode:
authorJJ <nicetry@noemail.com>2025-03-19 14:56:26 +0000
committerJJ <nicetry@noemail.com>2025-03-19 14:56:26 +0000
commit16f52b7bef745097f7076dde76715db378b54343 (patch)
treecfcacda8adced2059dcc120d2bc2446d3c4f960a /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.md9
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
+```