No ERB/Ruby? Just use built in envsubst for templates

template.txt contains:

Hello ${NAME}

Then you could run:

export NAME=Dan
envsubst < template.txt

And the result would be "Hello Dan"

Leave a Reply

Your email address will not be published. Required fields are marked *