Parameterised merge array by key example

This commit is contained in:
Mike Farah
2022-02-01 15:11:39 +11:00
parent 0afb59c65e
commit b80080a26d
3 changed files with 30 additions and 19 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ a:
```
then
```bash
valueEnv="moo" pathEnv=".a.b[0].name" yq 'eval(strenv(pathEnv)) = strenv(valueEnv)' sample.yml
pathEnv=".a.b[0].name" valueEnv="moo" yq 'eval(strenv(pathEnv)) = strenv(valueEnv)' sample.yml
```
will output
```yaml