Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • The % on your prompt indicates you are using zsh and not bash. Also you are going to want to ensure not to use curly quotes in any actual code. Commented Jun 2, 2021 at 19:01
  • Didn’t get your point about curly braces? Its part of valid json, I put in the code as a sample. Commented Jun 2, 2021 at 19:03
  • ok. keyboard error typing on phone. I will edit it. Commented Jun 2, 2021 at 19:07
  • If you're looking for a generic solution you're going to need some way to identify for which keys you want to replace values. I'd say that's a totally different question Commented Jun 2, 2021 at 20:28