Envsubst: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 6: Line 6:


<tt>envsubst</tt> performs [[Bash_Variables#Variable_Expansion_in_an_Arbitrary_File|environment variable expansion]] in shell-format strings in arbitrary files. No other shell [[Bash Command Line Expansion#Overview|command line expansions]] will be. performed.
<tt>envsubst</tt> performs [[Bash_Variables#Variable_Expansion_in_an_Arbitrary_File|environment variable expansion]] in shell-format strings in arbitrary files. No other shell [[Bash Command Line Expansion#Overview|command line expansions]] will be. performed.
If a variable is declared but not found in the environment, it will be replaced with the empty string.


=Installation=
=Installation=

Revision as of 17:21, 5 May 2018

Internal

Overview

envsubst performs environment variable expansion in shell-format strings in arbitrary files. No other shell command line expansions will be. performed.

If a variable is declared but not found in the environment, it will be replaced with the empty string.

Installation

Mac

brew install gettext

then modify .bashrc:

 export PATH=/usr/local/opt/gettext/bin:${PATH}

RedHat/Centos