1
0
mirror of https://github.com/taigrr/yq synced 2025-01-18 04:53:17 -08:00

fixed boolean example

This commit is contained in:
Mike Farah
2020-11-20 15:33:21 +11:00
parent 663413cd7a
commit 356aac5a1f
2 changed files with 7 additions and 8 deletions

View File

@@ -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
```