mirror of
https://github.com/taigrr/yq
synced 2025-01-18 04:53:17 -08:00
Updated docs to explicity put array paths in quotes
This commit is contained in:
@@ -7,11 +7,13 @@ b:
|
||||
```
|
||||
|
||||
```bash
|
||||
yaml r sample.yaml b[foo.bar]
|
||||
yaml r sample.yaml 'b[foo.bar]'
|
||||
```
|
||||
|
||||
```bash
|
||||
yaml w sample.yaml b[foo.bar] 9
|
||||
yaml w sample.yaml 'b[foo.bar]' 9
|
||||
```
|
||||
|
||||
Any valid yaml key can be specified as part of a key lookup.
|
||||
|
||||
Note that the path is in quotes to avoid the square brackets being interpreted by your shell.
|
||||
|
||||
Reference in New Issue
Block a user