I have an object string in {"name": "VAULT", "value": "jsakjkaj"},{"name": "IMAGE", "value": "busybox"}
format in a file called ENV.json
.
i am assigning the content of ENV.json
to a variable called VAL
like below.
VAL=`cat ENV.json`
and i have a placeholder %KEYVALUES%
in another file test.json . i want to replace %KEYVALUES%
with $VAL
like below
sed 's/%KEYVALUES%/'${VAL}'/g' test.json --> but this is throwing the error
sed: -e expression #1, char 16: unterminated `s' command
Please help.