Update cheatsheets

This commit is contained in:
ivuorinen
2025-04-27 00:21:02 +00:00
parent 47db9e503e
commit 5bf37ece1a
136 changed files with 315 additions and 144 deletions

25
tldr/jc.json Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# jc
> 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|--pretty]}}`
- Output pretty JSON via magic syntax:
`jc {{[-p|--pretty]}} {{ifconfig}}`