M4ENV
NAMESYNOPSIS
DESCRIPTION
AUTHOR
LICENSE
NAME
m4env - run m4 with environment variables accessible as macros
SYNOPSIS
m4env [OPTIONS] [FILES]
DESCRIPTION
Modifies the command line by replacing argv[0] with "m4" and inserting a -D option for each environment variable before the original argv[1]. Then execs m4 (from the PATH) with the created command line.
As a result, each environment variable is available for expansion as a m4 macro with the same name.
For example:
echo "Your user name is LOGNAME" | m4env
AUTHOR
Sergey Poznyakoff
LICENSE
"THE BEER-WARE LICENSE" (Revision 42):
<gray@gnu.org> wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.
Manpage server at man.gnu.org.ua.
Powered by mansrv 1.1