mirror of
https://github.com/taigrr/yq
synced 2025-01-18 04:53:17 -08:00
Fixing op precedences
This commit is contained in:
@@ -79,3 +79,14 @@ then
|
||||
yq eval '.a.[] | select(. == "*og") | [{"path":path, "value":.}]' sample.yml
|
||||
```
|
||||
will output
|
||||
```yaml
|
||||
- path:
|
||||
- a
|
||||
- 1
|
||||
value: dog
|
||||
- path:
|
||||
- a
|
||||
- 2
|
||||
value: frog
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user