Replies: 5 comments
-
I don't know how readarray works - but to get all the documents into a single yaml array you can do this:
|
Beta Was this translation helpful? Give feedback.
-
Forgot to explain:
|
Beta Was this translation helpful? Give feedback.
-
I see the |
Beta Was this translation helpful? Give feedback.
-
Now that it's in an array - you can follow the solution here: https://stackoverflow.com/questions/62898925/using-yq-in-for-loop-bash/70162342#70162342 |
Beta Was this translation helpful? Give feedback.
-
Ok, it works! Thank you. |
Beta Was this translation helpful? Give feedback.
-
Hi, if we have data.yml like:
and we wish to run a command like:
The array
$DATA
shall has two elements.should be
and
should be
How can I do this? Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions