mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-13 22:38:04 +00:00
360 B
360 B
Keys with dots
When specifying a key that has a dot use key lookup indicator.
b:
foo.bar: 7
yaml r sample.yaml 'b[foo.bar]'
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.