With
Last updated
yq 'with(.a.deeply; .nested = "newValue" | .other= "newThing")' sample.ymla:
deeply:
nested: newValue
other: newThingmyArray:
- a: apple
- a: bananayq 'with(.myArray[]; .b = .a + " yum")' sample.ymlmyArray:
- a: apple
b: apple yum
- a: banana
b: banana yum