4 added 224 characters in body
source | link

You could use envsubst (part of gnu gettext):

envsubst < infile

will replace all1the environment variables in your file with their corresponding value. The variable names must consist solely of alphanumeric or underscore ASCII characters, not start with a digit and be nonempty; otherwise such a variable reference is ignored.


1: one can also replace only certain environment variables, see this question. To replace only certain environment variables, see this question.

You could use envsubst (part of gnu gettext):

envsubst < infile

will replace all1 environment variables in your file with their corresponding value.


1: one can also replace only certain environment variables, see this question.

You could use envsubst (part of gnu gettext):

envsubst < infile

will replace the environment variables in your file with their corresponding value. The variable names must consist solely of alphanumeric or underscore ASCII characters, not start with a digit and be nonempty; otherwise such a variable reference is ignored.


To replace only certain environment variables, see this question.

3 replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
source | link

You could use envsubst (part of gnu gettext):

envsubst < infile

will replace all1 environment variables in your file with their corresponding value.


1: one can also replace only certain environment variables, see this question.see this question.

You could use envsubst (part of gnu gettext):

envsubst < infile

will replace all1 environment variables in your file with their corresponding value.


1: one can also replace only certain environment variables, see this question.

You could use envsubst (part of gnu gettext):

envsubst < infile

will replace all1 environment variables in your file with their corresponding value.


1: one can also replace only certain environment variables, see this question.

2 added 202 characters in body
source | link

You could use envsubst (part of gnu gettext):

envsubst < infile

will replace all1 environment variables in your file with their corresponding value.


1: one can also replace only certain environment variables, see this question.

You could use envsubst:

envsubst < infile

will replace all environment variables in your file with their corresponding value.

You could use envsubst (part of gnu gettext):

envsubst < infile

will replace all1 environment variables in your file with their corresponding value.


1: one can also replace only certain environment variables, see this question.

1
source | link