[oclug] The 'pr' command

Vic Gedris vic at worldwidepunk.com
Tue Aug 28 14:54:28 EDT 2001


On Tue, 28 Aug 2001, Robert Bastien wrote:

> Vic,
>
> this is the script (ptrf) we utilise to format outputs to our printer.  You
> can see the pr construct from it.
> Hope it helps  : )
> ____________________________________________________________
> /bin ==> $ more ptrf
> if [ "$1" = "" ]
> then
>         cat - >/tmp/$LOGNAME.ftp.$$
>         FILE=/tmp/$LOGNAME.ftp.$$
> else
>         FILE=$1
> fi
>
> pr -F -l60 -f -w70 -o6 -e $FILE >/tmp/$LOGNAME.lp1.$$

Thanks Robert.  I'll have to digest that later (meeting in 6 minutes ;-)

Cheers,
Vic

-- 
------------------------------------------------------------------------
    WORLD WIDE PUNK        http://www.worldwidepunk.com
vic-at-worldwidepunk.com   PO Box 52051, Ottawa Ontario, K1N 5S0, CANADA
------------------------------------------------------------------------




More information about the OCLUG mailing list