mirror of
https://github.com/taigrr/yq
synced 2025-01-18 04:53:17 -08:00
fixed boolean example
This commit is contained in:
@@ -32,13 +32,13 @@ Given a sample.yml file of:
|
||||
```
|
||||
then
|
||||
```bash
|
||||
yq eval '.[] | select(.a == "cat" or .b == "dog")' sample.yml
|
||||
yq eval '[.[] | select(.a == "cat" or .b == "dog")]' sample.yml
|
||||
```
|
||||
will output
|
||||
```yaml
|
||||
a: bird
|
||||
b: dog
|
||||
a: cat
|
||||
b: fly
|
||||
- a: bird
|
||||
b: dog
|
||||
- a: cat
|
||||
b: fly
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user