Skip to content

Replicating --script behavior in v4 #833

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

You must be logged in to vote

Atm you can't do that - however in v4 you can have a multiple operations in a single expression, so I guess what you could do is create a bash script file with a single, multi-line expression

#!/bin/bash

./yq e '
  .a.key1 = "things" |
  .a.ab.key2 = "whatever"
' ./examples/data1.yaml

Replies: 1 comment 1 reply

Comment options

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

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