On Thu, Oct 20, 2005 at 11:43:49AM -0500, Christopher L. Barnard
wrote:
um, fgrep does not have a -w switch...
Christopher
On Wed, 19 Oct 2005, Dallman Ross wrote:
On Wed, Oct 19, 2005 at 04:49:15PM -0400, S.A. Birl wrote:
At the command-line: % echo "From: Goodguys Inc." | fgrep -ei
-f greenlist From: Goodguys Inc.
% echo $? 0
So try this, and I think it'll give you the results you're
looking for. And the -i is optional, depending on your mood.
Running just (f)?grep with no string boundaries will get you
false matches.
[snip]
Suggest you use the -w switch to avoid this.
Um, there are more variations of grep out there that you can shake
a stick at. Many fgreps do have a -w switch.
$ uname -rs
NetBSD 2.0
$ fgrep --version
fgrep (GNU grep) 2.5.1
Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ fgrep -w Dallman procmail-list
To: Dallman Ross <dman(_at_)nomotek(_dot_)com>
On Wed, 19 Oct 2005, Dallman Ross wrote:
$
Dallman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail