mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-14 15:18:06 +00:00
336 B
336 B
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: dog
then
yq '.[] | split_doc' sample.yml
will output
a: cat
---
b: dog