mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
cc7eb84388
Adds documentation on how to use a key lookup indicator for dealing with keys that have dots when specifying a path as part of create, read, and write commands. Resolves: #22
18 lines
261 B
Markdown
18 lines
261 B
Markdown
### Keys with dots
|
|
When specifying a key that has a dot use key lookup indicator.
|
|
|
|
```yaml
|
|
b:
|
|
foo.bar: 7
|
|
```
|
|
|
|
```bash
|
|
yaml r sample.yaml b[foo.bar]
|
|
```
|
|
|
|
```bash
|
|
yaml w sample.yaml b[foo.bar] 9
|
|
```
|
|
|
|
Any valid yaml key can be specified as part of a key lookup.
|