m4 — macro processor

The m4 utility is a macro processor that shall
read one or more text files, process them
according to their included macro statements, and
write the results to standard output.

‘m4’ also has builtin functions for including
files, running shell commands, doing arithmetic,
etc.

Example

Details about see in info m4