great for generating cfg/rc from template
template
test.tmpl:
test template.
${var1}, ${var2}
render
export var1="hello"
export var2="world"
envsubst < file.tmpl
output
test template.
hello, world!
great for generating cfg/rc from template
test.tmpl:
test template.
${var1}, ${var2}
export var1="hello"
export var2="world"
envsubst < file.tmpl
test template.
hello, world!