1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 20:02:09 +02:00
tldr/pages/common/jc.md
2020-06-04 17:05:17 +02:00

20 lines
414 B
Markdown

# jc
> A utility to convert the output of multiple commands to JSON.
> More information: <https://github.com/kellyjonbrazil/jc>.
- 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}}`