1 #!/bin/sh 2 # Filter to encapsulate text files in HP PJL format, suitable for use as an 3 # if filter for any printer supporting the HP PJL format, such as the 4 # HP LaserJet IIIsi 5 doescape () { 6 printf "\33%%-12345X" 7 } 8 doescape 9 echo @PJL 10 echo @PJL JOB 11 cat 12 doescape 13 doescape 14 echo @PJL 15 echo @PJL EOJ 16 doescape 17