mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
jq: remove tokenization of dot operator (#9428)
This commit is contained in:
parent
bbe0ebab38
commit
28841b6189
3 changed files with 6 additions and 6 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
- Führe den angegebenen Ausdruck aus (gib farbiges und formatiertes JSON aus):
|
||||
|
||||
`{{cat pfad/zu/datei.json}} | jq '{{.}}'`
|
||||
`{{cat pfad/zu/datei.json}} | jq '.'`
|
||||
|
||||
- Führe ein gegebenes Skript aus:
|
||||
|
||||
|
@ -29,4 +29,4 @@
|
|||
|
||||
- Füge bestimmte Schlüssel hinzu/lösche bestimmte Schlüssel:
|
||||
|
||||
`{{cat pfad/zu/datei.json}} | jq '{{.}} {{+|-}} {{{"schlüssel1": "wert1", "schlüssel2": "wert2", ...}}}'`
|
||||
`{{cat pfad/zu/datei.json}} | jq '. {{+|-}} {{{"schlüssel1": "wert1", "schlüssel2": "wert2", ...}}}'`
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
- Выполнить указанное выражение (вывести цветной и отформатированный json):
|
||||
|
||||
`{{cat путь/к/файлу.json}} | jq '{{.}}'`
|
||||
`{{cat путь/к/файлу.json}} | jq '.'`
|
||||
|
||||
- Выполнить указанный скрипт:
|
||||
|
||||
|
@ -29,4 +29,4 @@
|
|||
|
||||
- Добавить/удалить указанные ключи:
|
||||
|
||||
`{{cat путь/к/файлу.json}} | jq '{{.}} {{+|-}} {{{"ключ1": "значение1", "ключ2": "значение2", ...}}}'`
|
||||
`{{cat путь/к/файлу.json}} | jq '. {{+|-}} {{{"ключ1": "значение1", "ключ2": "значение2", ...}}}'`
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
- Execute a specific expression (print a colored and formatted json):
|
||||
|
||||
`{{cat path/to/file.json}} | jq '{{.}}'`
|
||||
`{{cat path/to/file.json}} | jq '.'`
|
||||
|
||||
- Execute a specific script:
|
||||
|
||||
|
@ -29,4 +29,4 @@
|
|||
|
||||
- Add/remove specific keys:
|
||||
|
||||
`{{cat path/to/file.json}} | jq '{{.}} {{+|-}} {{{"key1": "value1", "key2": "value2", ...}}}'`
|
||||
`{{cat path/to/file.json}} | jq '. {{+|-}} {{{"key1": "value1", "key2": "value2", ...}}}'`
|
||||
|
|
Loading…
Add table
Reference in a new issue