-
origin file
i hope test.bd.com will replace to other string like "testNew.bd.cn"
|
Beta Was this translation helpful? Give feedback.
Answered by
mikefarah
Apr 13, 2021
Replies: 1 comment 3 replies
-
It's cumbersome but it should work till a replace operator is added |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
pycgo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yq
doesnt have string replace (yet) best way you can do it is to extract the value out, pipe it throughsed
to update it, then write it back usingyq
.It's cumbersome but it should work till a replace operator is added