yq
can split out the results into multiple files with the --split-exp/s
flag. You will need to give this flag an expression (that returns a string), this will be used as the filename for each result. In this expression, you can use $index
to represent the result index in the name, if desired.---
), then run with the --no-doc
flag.$index
for the filename. Note that this variable is only defined for the --split-exp/s
flag.file_0.yml
and file_1.yml
.