logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Envsubst - Substitute Variables | Online Free DevTools by Hexmos

Substitute environment variables with Envsubst. Replace variables in strings and files. Free online tool, no registration required.

envsubst

Substitutes environment variables with their value in shell format strings. Variables to be replaced should be in either ${var} or $var format. More information: https://www.gnu.org/software/gettext/manual/gettext.html#envsubst-Invocation.

  • Replace environment variables in stdin and output to stdout:

echo '{{$HOME}}' | envsubst

  • Replace environment variables in an input file and output to stdout:

envsubst < {{path/to/input_file}}

  • Replace environment variables in an input file and output to a file:

envsubst < {{path/to/input_file}} > {{path/to/output_file}}

  • Replace environment variables in an input file from a space-separated list:

envsubst '{{$USER $SHELL $HOME}}' < {{path/to/input_file}}

return

See Also