mirror of
https://github.com/taigrr/yq
synced 2025-01-18 04:53:17 -08:00
Minor fixes
This commit is contained in:
@@ -48,3 +48,19 @@ a: cat
|
||||
b: dog
|
||||
```
|
||||
|
||||
### Delete matching entries
|
||||
Given a sample.yml file of:
|
||||
```yaml
|
||||
a: cat
|
||||
b: dog
|
||||
c: bat
|
||||
```
|
||||
then
|
||||
```bash
|
||||
yq eval 'del( .[] | select(. == "*at") )' sample.yml
|
||||
```
|
||||
will output
|
||||
```yaml
|
||||
b: dog
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user