Say I have a json file that containers a var:
a.json
{"hello": "$WHO"}
And I have WHO
in environment: export WHO=world
. I want to interpolate a.json from env and generate a new json file:
{"hello": "world"}
Is there a pure shell way to archive that?