Adding recipes

This commit is contained in:
Mike Farah
2023-09-01 12:17:54 +10:00
parent e5564c18fe
commit cda69bff5e
4 changed files with 114 additions and 0 deletions
+5
View File
@@ -45,6 +45,11 @@ yq -i '
' file.yaml
```
Find and update an item in an array:
```bash
yq '(.[] | select(.name == "foo") | .address) = "12 cat st"'
```
Convert JSON to YAML
```bash
yq -Poy sample.json