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).
=> CC-BY This content has been proxied by September (ba2dc).Proxy Information
text/gemini;lang=en-GB