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.
0 replies
-
Forgot to explain:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I see the |
Beta Was this translation helpful? Give feedback.
0 replies
-
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.
0 replies
-
Ok, it works! Thank you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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