http://qs321.pair.com?node_id=344371


in reply to word finder

perl -ne 'print if /\bfoo\b/' in.txt

If that's not it, start with a better problem statement.