Skip to content

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

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

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

Comment options

You must be logged in to vote
3 replies
@mikefarah
Comment options

@mikefarah
Comment options

@pycgo
Comment options

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