Sample Header Ad - 728x90

Change value in array using yq from mike farah

2 votes
2 answers
3368 views
In my yaml file I have this persons array (it only has one element always)
persons:
  - name:  mario
    version: 1.0.0
    city: Madrid
how can I replace city to any other value using yq ?
Asked by Andre Silva (37 rep)
Nov 14, 2023, 11:28 AM
Last activity: Feb 11, 2024, 11:15 AM