jq: remove tokenization of dot operator (#9428)

This commit is contained in:
Richard Mörbitz
2022-11-02 05:27:37 +01:00
committed by GitHub
parent bbe0ebab38
commit 28841b6189
3 changed files with 6 additions and 6 deletions

View File

@@ -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", ...}}}'`