Skip to content

yaml multi document markers #237

Answered by TomWright
electriquo asked this question in Q&A
Discussion options

You must be logged in to vote

When reading multiple documents dasel stores them internally as a list, allowing you to access them as follows:

$ echo '---
foo: bar
---
foo: baz
---
foo: spam' | dasel -r yaml '.[1].foo'
baz

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@electriquo
Comment options

@electriquo
Comment options

@TomWright
Comment options

@TomWright
Comment options

@electriquo
Comment options

Answer selected by electriquo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants