Files
oam/knowledge base/envsubst.md
2022-05-15 00:24:53 +02:00

19 lines
236 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='mek' envsubst < hello.file
hello mek
```