I just want to know if it is possible for m4 to divert to a specific file instead of shell redirection on the command line.
So, something like this:
divert(`path/to/file.result')
This text is written to path/to/file.result
divert
This text appears on stdout
I could figure out how to do this from the shell, I am just wondering if there is such a thing in m4.
Thanks for any answers.