8 trap "rm $STRINGS; rm $ERRORS;" EXIT
13 while getopts "f:e:" opt
; do
15 f
) echo "$OPTARG" >> $STRINGS;;
16 e
) echo "$OPTARG" >> $STRINGS ; echo "$OPTARG" >> $ERRORS;;
21 echo "Waiting for $FILE to say one of following strings"
24 while ! egrep -wf $STRINGS $FILE; do
28 if egrep -wf $ERRORS $FILE; then