envsubst
Substitute environment variables with their value in shell format strings. Variables to be replaced should be in either
${var}or$varformat. More information: https://www.gnu.org/software/gettext/manual/gettext.html#envsubst-Invocation.
- Replace environment variables in
stdinand output tostdout:
echo '' | envsubst
- Replace environment variables in an input file and output to
stdout:
envsubst <
- Replace environment variables in an input file and output to a file:
envsubst < >
- Replace environment variables in an input file from a space-separated list:
envsubst < ''
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
