Forrest logo
back to context overview

envsubst

List of commands for envsubst:

  • envsubst:tldr:a22ca envsubst: Replace environment variables in an input file from a space-separated list.
    $ envsubst '${$USER $SHELL $HOME}' < ${path-to-input_file}
    try on your machine
    explain this command
  • envsubst:tldr:a71ad envsubst: Replace environment variables in an input file and output to `stdout`.
    $ envsubst < ${path-to-input_file}
    try on your machine
    explain this command
  • envsubst:tldr:c373b envsubst: Replace environment variables in an input file and output to a file.
    $ envsubst < ${path-to-input_file} > ${path-to-output_file}
    try on your machine
    explain this command
  • envsubst:tldr:db1ea envsubst: Replace environment variables in `stdin` and output to `stdout`.
    $ echo '${$HOME}' | envsubst
    try on your machine
    explain this command
back to context overview