Split into Documents
This operator splits all matches into separate documents
Split empty
Running
yq --null-input 'split_doc'will output
Split array
Given a sample.yml file of:
- a: cat
- b: dogthen
yq '.[] | split_doc' sample.ymlwill output
a: cat
---
b: dogLast updated
Was this helpful?