From b4c25483c96542b9f58c0647cc2b26ee58467638 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 4 Jun 2020 08:05:17 -0700 Subject: [PATCH] jc: add page (#4089) --- pages/common/jc.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/jc.md diff --git a/pages/common/jc.md b/pages/common/jc.md new file mode 100644 index 0000000000..f8bc34ba15 --- /dev/null +++ b/pages/common/jc.md @@ -0,0 +1,20 @@ +# jc + +> A utility to convert the output of multiple commands to JSON. +> More information: . + +- Convert command output to JSON via pipe: + +`{{ifconfig}} | jc {{--ifconfig}}` + +- Convert command output to JSON via magic syntax: + +`jc {{ifconfig}}` + +- Output pretty JSON via pipe: + +`{{ifconfig}} | jc {{--ifconfig}} -p` + +- Output pretty JSON via magic syntax: + +`jc -p {{ifconfig}}`