Skip to content

Setting a value while preserving its anchor in v4 #679

Answered by mikefarah
oleobal asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not at at a machine with yq installed to try out your example, but you can pipe multiple commands together

something like

yq e 'registry = "cat" | registry anchor="fred"'

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@edposinitckii-hf
Comment options

@mikefarah
Comment options

@edposinitckii-hf
Comment options

@mikefarah
Comment options

@edposinitckii-hf
Comment options

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