choosing a pager/formatter for source listings, please. (fwd)

Arnold D. Robbins arnold at infographix.infographix.com
Thu Feb 22 10:18:36 EST 1996


This script is pretty good. I have a suggestion (untried)

Instead of this

>     cat - << MARKER|cat - $FILENAME

try something like

	cat << MARKER
	....
	MARKER
	sed 's/\\/&e/g' < $FILENAME

in the body of your for loop.

The main thing this does is turn \ into \e, which tell groff, "put a \
here", so that things like \n and \t in the source code come out that
way in the formatted output.

Arnold Robbins		InfoGraphix (Star Imaging LLC, dba)
Phone: +1-404-523-4944	250 Williams Street, Suite 1120, Atlanta, GA 30303
Fax:   +1-404-523-4882	E-mail: arnold.robbins at infographix.com
"Oh! Look at all those zeros!" --- Chana Robbins, Age 3.5






More information about the Ale mailing list