envsubst - deptno/deptno.github.io GitHub Wiki

envsubst

$ cat << EOF > hello.txt
hello $USER
EOF

$ cat hello.txt
hello $USER

$ USER=deptno envsubst < hello.txt
hello deptno

$ cat hello.txt | USER=deptno envsubst
hello deptno

link

⚠️ **GitHub.com Fallback** ⚠️