1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-06 12:26:03 +02:00

jc: add page (#4089)

This commit is contained in:
Kelly Brazil 2020-06-04 08:05:17 -07:00 committed by GitHub
parent 847f0c2094
commit b4c25483c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
pages/common/jc.md Normal file
View file

@ -0,0 +1,20 @@
# 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}}`