| My post was because "egrep -f" gives an error "regular expression too
| long".
Yes, Mike, we remember. And you found two things that eased it: both
involved having fewer magic characters in the file, perhaps reducing egrep's
RAM needs. It sounds more like a limitation on egrep than anything else.
fgrep can stand a longer file of search strings, but as I have already
acknowledged, you need to store patterns, not fixed text, so you can't use
fgrep.
You may have to maintain several files of patterns of undesirable addresses;
as soon as you find a hit, stop egrepping and jump to the rejection routine.
If you get through all of them without a hit, then it's a good address.