if [ $# == 0 ] then echo "clue.sh - find words that match a pattern" echo "usage: clue.sh pattern" echo "specify the pattern with lower-case letters and ? characters only" echo "for example: clue.sh ?e?r?" else pat=`echo "^$1$" | sed s/?/[a-z]/g` # echo "search pattern = /$pat/" egrep $pat //bell/btemp/mark/dict fi