Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 May 1997 17:52:05 -0800 (AKDT)
From:      Steve Howe <un_x@anchorage.net>
To:        freebsd-questions <questions@freebsd.org>
Subject:   print filter
Message-ID:  <Pine.BSF.3.95q.970522174854.852A-100000@aak.anchorage.net>

next in thread | raw e-mail | index | archive | help

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
-------------------------------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970522174854.852A-100000>