#!/bin/sh
#
# Sun Solaris /usr/bin/lp replacement.
#
# Linux users: copy this script into /usr/bin directory
#              if you don't have /usr/bin/lp already.
#
ARGS=
for ARG in $@
do
case $ARG in
-d*) ARGS="$ARGS -D${ARG#-d}";;
-t*) ARGS="$ARGS -T${ARG#-t}";;
-n*) ARGS="$ARGS -#${ARG#-n}";;
-o*) ARGS="$ARGS ${ARG#-o}";;
*) ARGS="$ARGS ${ARG}";;
esac
done
/usr/bin/lpr $ARGS
