From 66ef864f2534f5d8785ce1ebc12f8eb8403e24d3 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sun, 14 Jul 2024 00:16:47 +0000 Subject: [PATCH] Update cheatsheets --- tldr/jq | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tldr/jq b/tldr/jq index c782c8de..50acf9f9 100644 --- a/tldr/jq +++ b/tldr/jq @@ -12,6 +12,10 @@ source: https://github.com/tldr-pages/tldr.git `{{cat path/to/file.json}} | jq '.'` +- Execute a specific expression only using the `jq` binary (print a colored and formatted JSON output): + +`jq '.' {{/path/to/file.json}}` + - Execute a specific script: `{{cat path/to/file.json}} | jq --from-file {{path/to/script.jq}}`