Skip to content

Rename key #741

Answered by mikefarah
sylvainbx asked this question in Q&A
Mar 1, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Without being at my pc with yq - the best way I think this would work is something like:

yq `a.foo = a.b | del(a.b)`

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sylvainbx
Comment options

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