mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
352 B
352 B
Split into Documents
This operator splits all matches into separate documents
Split empty
Running
yq eval --null-input 'splitDoc'
will output
Split array
Given a sample.yml file of:
- a: cat
- b: dog
then
yq eval '.[] | splitDoc' sample.yml
will output
a: cat
---
b: dog