# replace standard bcnu messages with your own
# BCNUMSG set to message


#sub patsub {

OLDIFS=$IFS
IFS=:

cat patterns |
	{
	while read from to
	do
		REP=`echo $BCNUMSG | sed -n "s/\(.*\)'$from'/\1'$to'/p"`
		if [ ! -z "$REP" ]
			then
				BCNUMSG=$REP
				IFS=$OLDIFS
				exit
		fi
	done
	}
IFS=$OLDIFS
#}
