What do you want to do with "funkhead" or "crudshorts"? Think carefully. If you want to reject them based on your list of restricted words, you're going to get a lot of false positives based on legitimate words like "crude". (The same happens when you substitute "real" dirty words.)
If you don't want a false positive, you'll find that \b is your friend. See perlman:perlre.
In reply to Re: grep : partial and/or exact match
by dws
in thread grep : partial and/or exact match
by symŽ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |