#!/bin/csh -f
# Start up the program on the command line and run 'grep' like tests
# on the dictionary. Use for 'time' 
#
#	-vikas@jvnc.net April 27, 1992

if ( $#argv == 0 ) exit 1

set prog = "$1"
set WORDS = /usr/dict/words

echo 'Searching "' 'M[ou]'"'"'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]"'

"$prog" "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]"  khadafy.lines 

echo "Dictionary searches - 'seaport' between seam and 'search'"
"$prog"  -s 'seam' -e 'search' seaport $WORDS

echo "Dictionary searches ( unknown word (no output)"
"$prog" -s '^[Zz].*[Ii][ng]zag$' -e '^za[a-z]y$' '[A-z].*zodiac+|monoela' $WORDS

echo "Dictionary searches ('zap' between  'zany' and 'zeal' "
"$prog" -s '^za[a-z]y$' -e '^[Zz].*[eEak][aZ][L-z]$' 'zap|zazen|zanzi' ${WORDS}

