To update env json from the variable in yaml file using -sed

I have an environment json file.

{
	"key": "secret_qa",
	"value": "secret_qa_value",
	"type": "default",
	"enabled": true
},

in the yaml file , i am using -sed to update the value in the same file

- sed -i "s/secret_qa_value/${secret_qa_value}/g" ./TEST_QA.postman_environment.json.

But its not updating. Is the syntax correct

Hey @anita.christobel :wave:

This feels more like a StackOverflow question and not really anything specifically to do with Postman, other than the fact you’re trying to perform this action on an environment file. :grimacing:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.