Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Sep 1999 10:05:51 -0400 (EDT)
From:      Matt Behrens <matt@zigg.com>
To:        questions@freebsd.org
Subject:   m4-controlled multiple file output
Message-ID:  <Pine.BSF.4.10.9909151002110.12799-100000@megaweapon.zigg.com>

next in thread | raw e-mail | index | archive | help
Does anyone know if there is 

(a) a way to have m4 (or gm4, if necessary) redirect output to
files as controlled by macros, i.e.

	- this text
	  goes to
	  stdout
	filedivert(`otherfile.txt')dnl
	- this text
	  goes in
	  otherfile.txt
	filedivert()dnl
	- this text
	  goes to
	  stdout

(b) a tool that can reprocess the output of m4 to do this simply,
given certain output strings embedded in the output?  I can use sh
and cat with some creative "here documents" but I would think
there'd be a less fork-intensive way...

Thanks...

Matt Behrens <matt@zigg.com>
Owner/Administrator, zigg.com
Chief Engineer, Nameless IRC Network



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9909151002110.12799-100000>