From 5bb5fc3c7e36f6f606ecda7c89878446baed41fe Mon Sep 17 00:00:00 2001 From: Alexey Kopytko Date: Thu, 7 Mar 2024 10:36:52 +0900 Subject: [PATCH] Update README.md (#3) --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f169cab..b47890e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,11 @@ # exec2json +```bash +exec2json /bin/bash -c 'echo this is my stdout; echo that is my stderr 1>&2' | jq ``` -$ exec2json /bin/bash -c 'echo this is my stdout; echo that is my stderr 1>&2' | jq +Outputs: + +```json { "command": [ "/bin/bash",