§ tags: linuxbash

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!

envsubst