💾 Archived View for freeshell.de › tldr › envsubst.gmi captured on 2022-04-28 at 18:26:15. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
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).