# print a file to an attached-to-ansi printer # written by Danny Hershkowitz, April 4, 1995 # set -x # testing for existence of input file if test $# = 0 then echo "*****************************************" echo No file was given. Program terminated !!! echo "*****************************************" exit else if cp $1 tmp.tmp then rm tmp.tmp clear else echo "*****************************************" echo No file was given. Program terminated !!! echo "*****************************************" exit fi fi cat $1 | prt.1 echo | prt.1 .