mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-13 03:59:11 +00:00
Update cheatsheets
This commit is contained in:
25
jc
Normal file
25
jc
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user