# @(#) $Header: /users/hpnp/odyssey/repository/sh/dumbplot_printer_cr.psh,v 1.2 1999/04/21 06:52:13 hpnp Exp $ # # lp interface for dumb plotter # copies=$4 # CHANGE COPIES # Handle disable and cancel traps trap "trap 15;kill -15 0;exit 0" 15 # The remaining arguments are files shift; shift; shift; shift; shift files="$*" # Plot the spooled files i=1 while [ $i -le $copies ] do for file in $files do cat "$file" | sed 's/$/\ /' 2>&1 done i=`expr $i + 1` done exit 0