mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
19 lines
242 B
Markdown
19 lines
242 B
Markdown
# Envsubst
|
|
|
|
Substitutes environment variables in shell format strings.
|
|
|
|
## TL;DR
|
|
|
|
```sh
|
|
envsubst < input.file
|
|
envsubst < input.file > output.file
|
|
```
|
|
|
|
```sh
|
|
$ cat hello.file
|
|
hello $NAME
|
|
|
|
$ NAME='Johnny' envsubst < hello.file
|
|
hello Johnny
|
|
```
|