Substitute environment variables in text
medium risk
Replaces $VAR placeholders in a template with environment values — common in config rendering.
| Flag | Meaning |
|---|---|
$VARS | Limit substitution to listed variables (argument) |
envsubst '$HOST $PORT' < tpl > outSubstitute only HOST and PORT · explain & risk-check →Reference text is hand-written and may be incomplete — check man envsubst for your version. Test destructive commands on a non-production system first.