Replace environment variables in an input file and output to stdout


  • Substitutes environment variables with their value in shell format strings.
    Variables to be replaced should be in either `${var}` or `$var` format.
    More information: <>.
  • Trick copyright: tl;dr; <>

envsubst < {{path/to/input_file}}

click the source code to copy install envsubst on any operating system with