m4

Macro processor. More information: <https://www.gnu.org/software/m4>.

Install

All systems
curl cmd.cat/m4.sh
Debian Debian
apt-get install m4
Ubuntu
apt-get install m4
Alpine
apk add m4
Arch Arch Linux
pacman -S m4
image/svg+xml Kali Linux
apt-get install m4
CentOS
yum install m4
Fedora
dnf install m4
Windows (WSL2)
sudo apt-get update sudo apt-get install m4
OS X
brew install m4
Raspbian
apt-get install m4
Docker
docker run cmd.cat/m4 m4 powered by Commando

Macro processor. More information: <https://www.gnu.org/software/m4>.

  • Process macros in a file:
    m4 path/to/file
  • Define a macro before processing files:
    m4 -Dmacro_name=macro_value path/to/file

© tl;dr; authors and contributors