Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!brutus.cs.uiuc.edu!psuvax1!rutgers!umn-d-ub!cs.umn.edu!wytten From: wytten@umn-cs.cs.umn.edu (Dale R. Wyttenbach) Newsgroups: comp.lang.postscript Subject: need *simple* way to print ascii files on laserwriter Message-ID: <1990Feb2.220910.16236@umn-cs.cs.umn.edu> Date: 2 Feb 90 22:09:10 GMT Sender: wytten@umn-cs.cs.umn.edu (Dale R. Wyttenbach) Organization: University of Minnesota, Minneapolis - CSCI Dept. Lines: 27 Suppose you want to print the file /etc/hosts on a laserwriter that is hooked up to your unix box on /dev/ttyh1. What postscript commands do you put in FILE1 to make the command: cat FILE1 /etc/hosts > /dev/ttyh1 spit out /etc/hosts on the printer at 66 lines per page? I want the result to look as if you are looking at the file with vi: newlines in the appropriate places, and tabs expanded to 8 spaces. I don't care what you do with other unprintable ascii characters; maybe print their octal representation. I'm assuming this can be done with < 10 lines of postscript code, using a default resident font on the laserwriter. (I already have fancy programs like enscript that will do the job better) Please respond via email. Thanks dale Dale Wyttenbach | ...rutgers!umn-cs!wytten wytten@cs.umn.edu | wytten@umnacvx.bitnet Computer Science Department Systems Staff--University of Minnesota, Minneapolis