#!/bin/sh # PRN - printing script # O. La Rosa - 27-11-2004 - brlspeak.net - Public # # Why "prn"? just because prn was the command uner DOS, so this is a joke! # MRG="8" WDT="70" LNS="60" function f1 () { clear read -p"PRN@`hostname`:~$ File to print: " F test -z "$F" && exit pr -o $MRG --columns=1 -a -w $WDT -l $LNS $F |lpr exit } function f2 () { E="joe" #E="vim" clear read -p"Open file: " F test -z "$F" && exec $0 $E $F exec $0 } setleds +num clear echo "PRN@defaults:~$ Margins:$MRG Width:$WDT Lines:$LNS" read -p"PRN@`hostname`:~$ 1)Print 2)Edit text (blank = quit): " X test -z "$X" && exit f$X