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
5doescape () {
6    printf "\33%%-12345X"
7}
8doescape
9echo @PJL
10echo @PJL JOB
11cat
12doescape
13doescape
14echo @PJL
15echo @PJL EOJ
16doescape
17