mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-21 06:51:00 +00:00
Update cheatsheets
This commit is contained in:
4
tldr/mlr
4
tldr/mlr
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Receive JSON data and pretty print the output:
|
||||
|
||||
`echo '{"hello":"world"}' | mlr --ijson --opprint cat`
|
||||
`{{echo '{"key":"value"}'}} | mlr --ijson --opprint cat`
|
||||
|
||||
- Sort alphabetically on a field:
|
||||
|
||||
@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Receive JSON and format the output as vertical JSON:
|
||||
|
||||
`echo '{"hello":"world", "foo":"bar"}' | mlr --ijson --ojson --jvstack cat`
|
||||
`{{echo '{"key1":"value1", "key2":"value2"}'}} | mlr --ijson --ojson --jvstack cat`
|
||||
|
||||
- Filter lines of a compressed CSV file treating numbers as [S]trings:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user