This command takes an input file and substitutes strings inside it with the parameters passed. Here is an example input file:
cat temp The COLOR fox jumped over the TYPE fence.
If we want to substitute "COLOR" by "brown" and "TYPE" by "broken", we can use:
m4 -DCOLOR=brown -DTYPE=broken temp
page revision: 0, last edited: 26 Mar 2010 00:52