From 05294eb4a8a22190b26823f03cc8a8cb037b6879 Mon Sep 17 00:00:00 2001 From: mrz-secops-offsec <51973302+jonz-secops@users.noreply.github.com> Date: Sat, 13 Jul 2024 17:47:51 -0600 Subject: [PATCH] jq: add single binary version (#13265) Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: spageektti --- pages/common/jq.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/jq.md b/pages/common/jq.md index 1ed0ce24f..ff73b17dc 100644 --- a/pages/common/jq.md +++ b/pages/common/jq.md @@ -7,6 +7,10 @@ `{{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}}`