From owner-freebsd-questions Thu May 22 19:12:57 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA24054 for questions-outgoing; Thu, 22 May 1997 19:12:57 -0700 (PDT) Received: from iceberg.anchorage.net. (root@iceberg.anchorage.net [207.14.72.150]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id TAA24049 for ; Thu, 22 May 1997 19:12:55 -0700 (PDT) Received: from aak.anchorage.net (ai-133 [207.14.72.133]) by iceberg.anchorage.net. (8.6.11/8.7.3) with SMTP id RAA10259 for ; Thu, 22 May 1997 17:09:55 -0800 Date: Thu, 22 May 1997 17:52:05 -0800 (AKDT) From: Steve Howe X-Sender: abc@aak.anchorage.net To: freebsd-questions Subject: print filter Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk this is an "auto" bsd/dos lp filter i whipped up ... can anyone tell me why it prints a blank line at the beginning of each document (not page, document ...)? ------------------------------------------------------------------------- #!/bin/sh # # simple lp text filter (BSD/DOS) read line1 if [ `echo $line1|grep ^M` ]; then echo $line1 && cat && echo ^L && exit 0 else { echo $line1 && cat; } | sed s/$/^M/ && echo ^L && exit 0 fi exit 2 ------------------------------------------------------------------------- Sleep: a sign a caffeine deprivation ... http://www.anchorage.net/~un_x -------------------------------------------------------------------------