snippetbashTip
jc — Convert the output of multiple commands to JSON. More information: <https://github.com/kellyjonbrazi
Viewed 0 times
thecommandcommandsmultipleconvertclijcoutput
Problem
How to use the
jc command: Convert the output of multiple commands to JSON. More information: <https://github.com/kellyjonbrazil/jc#usage>.Solution
jc — Convert the output of multiple commands to JSON. More information: <https://github.com/kellyjonbrazil/jc#usage>.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|--pretty]}}Output pretty JSON via magic syntax:
jc {{[-p|--pretty]}} {{ifconfig}}Code Snippets
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|--pretty]}}Output pretty JSON via magic syntax
jc {{[-p|--pretty]}} {{ifconfig}}Context
tldr-pages: common/jc
Revisions (0)
No revisions yet.