m4

Macro processing language for text transformation and code generation

brewmacoslinux
Try with needOr install directly
Source

About

Macro processing language

Commands

m4

Examples

Process a file with macro definitions and substitutions$ m4 input.m4 > output.txt
Define a macro on the command line and process input$ m4 -DNAME=value input.m4
Use m4 in a pipeline to generate configuration files$ m4 -Dversion=1.0 template.m4 | tee config.h