Substituting file contents in place with BASH and sed
The problem of substituting file contents in place on the command line is an old one.
Often it creeps out when dealing with configuration or other text files. You just need a quick substitution
, perhaps with sed, but what you end up with is frequently either none or a wrong ...