Is there a way within bash to replace placeholders in a text file with the contents of variables?
For example, I want to send an email notification out that looks like:
Dear Foo,
Alert: <Alert error text 1>
<Alert error text 2>
blah blah blah blah blah blah
I saw a related article (How to replace ${} placeholders in a text file?) but in the example, it adds static content. The catch is that "alert error text 1" and "alert error text 2" are always changing. I'm not aware of a way to use SED/AWK to replace the markers with dynamic content.
Is this possible?