💾 Archived View for freeshell.de › tldr › envsubst.gmi captured on 2022-06-11 at 21:42:45. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Substitutes environment variables with their value in shell format strings.
Variables to be replaced should be in either `${var}` or `$var` format.
echo '{$HOME}' | envsubst
envsubst < {path/to/input_file}
envsubst < {path/to/input_file} > {path/to/output_file}
envsubst '{$USER $SHELL $HOME}' < {path/to/input_file}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).