Files
oam/knowledge base/envsubst.md
2023-03-04 12:56:49 +01:00

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
```