Skip to content

how can i replace part of the value in v4? #765

Answered by mikefarah
pycgo asked this question in Q&A

You must be logged in to vote

yq doesnt have string replace (yet) best way you can do it is to extract the value out, pipe it through sed to update it, then write it back using yq.

It's cumbersome but it should work till a replace operator is added

Replies: 1 comment 3 replies

You must be logged in to vote
3 replies
@mikefarah

@mikefarah

@pycgo

Answer selected by pycgo
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