From: Dennis Robinson (djr48312@uxa.cso.uiuc.edu)
Date: 04/07/93


From: djr48312@uxa.cso.uiuc.edu (Dennis Robinson)
Subject: Re: Laser printer filter
Date: Wed, 7 Apr 1993 06:30:28 GMT

Another great way to print text files is to use the
"cprint" utility that comes with latex. If you didn't
compile it you must compile it, it is located in
/usr/TeX/src/cprint. This prints some great C file output
and text files can be filtered by using cprint -ascii filename.
From there you would use the dvilj2p to format the file to
laserjet output, then you can copy the .lj file to /dev/lp2
or where ever your printer is. A script to do the job.

#! /bin/sh
cprint $1
dvilj2p $1
cp $2 /dev/lp2

$1 the first command line optio is the original name of the text file.
$2 the second command line option is the original name with the
.lj extension. Example of invocatio would be as such.

ljprinttext file.txt file.txt.lj

one of you sed or tr experts can modify my script to look for
the same filename with the .lj extension in the directory, I dont
have the time.