ENVSUBST(1)

๐Ÿ’– ENVSUBST(1) ๐Ÿ’–

okay bestie, welcome to the envsubst page from the User Commands section of your manual โ€” she's little, she's powerful, she does ONE thing and she does it flawlessly. no cap.


โœจ NAME โœจ

envsubst โ€” substitutes environment variables in shell format strings ๐Ÿซถ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

envsubst [OPTION] [SHELL-FORMAT]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

Bestie. The whole job description is literally one line and it's iconic: it substitutes the values of environment variables. That's it. That's the girl. ๐Ÿ‘‘


๐Ÿ’… Operation mode:

  • -v, --variables โ€” output the variables occurring in SHELL-FORMAT โœจ

๐ŸŒˆ Informative output:

  • -h, --help โ€” display this help and exit ๐ŸŽ€
  • -V, --version โ€” output version information and exit โญ

so like, in normal operation mode, standard input gets copied straight to standard output, and every reference to an environment variable of the form $VARIABLE or ${VARIABLE} gets swapped out for the corresponding value. the way that works is so satisfying honestly ๐Ÿ˜ญ๐Ÿ’–

if a SHELL-FORMAT is given, then ONLY those environment variables that are referenced in SHELL-FORMAT get substituted โ€” she's picky, she's selective, she's got boundaries. otherwise, ALL environment variable references occurring in standard input get substituted. everyone eats, no gatekeeping. ๐Ÿ“

when --variables is used, standard input is ignored (sorry babes, not your moment), and the output consists of the environment variables that are referenced in SHELL-FORMAT, one per line. clean. organized. main character energy. โœจ


๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Written by Bruno Haible. absolute legend behavior, fr fr ๐Ÿซถ


๐Ÿ™ˆ REPORTING BUGS ๐Ÿ™ˆ

found a bug? don't suffer in silence bestie, report it in the bug tracker at <https://savannah.gnu.org/projects/gettext> or slide into the inbox at <bug-gettext@gnu.org>. ๐Ÿ’Œ


Copyright ยฉ 2003-2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. (yes that's in all caps in the original and yes it means what it means โ€” no safety net, bestie, be careful out there ๐Ÿ˜ญ)


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

The full documentation for envsubst is maintained as a Texinfo manual. If the info and envsubst programs are properly installed at your site, the command

info envsubst

should give you access to the complete manual. go read her, she's thorough ๐Ÿ’œ


and that's the whole page, bestie!! this was GNU gettext-runtime 1.0, dated January 2026 โ€” tysm for reading, mwah, stan envsubst, she never misses ๐Ÿ’…โœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from