Parv writes: >For even finer results, use word boundaries ... > > egrep '\bIN[^[:alnum:]]+A\b' file > egrep '\<IN[[:space:]]+A\>' file
I sincerely thank all for your examples which I have saved for future reference. The word boundary test appears to work perfectly, but after looking at all the other examples, they should work also giving living proof that in UNIX, there are many perfectly valid ways to solve the same problem. Again, many thanks. Martin McCormick WB5AGZ Stillwater, OK OSU Information Technology Department Network Operations Group .-- -... ..... .- --. --.. _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"