At 13:58 2005-10-21 -0500, Christopher L. Barnard wrote:
Yeah, I believe that the -e and -f flags can have an arguement and
the others do not. So the -e and -f need to be separate, but other flags
can be included. So "-i -e [arg] -f [arg]" is the same as
"-ie [arg] -f [arg]" as "-e [arg] -fi [arg]"....
Suggestion: try confirming your beliefs. It's easy enough to do from a
shell prompt.
-fi
will predictably attempt to open up a file 'i' to read patterns from it.
In regular use, to avoid confusion, -e *REALLY* should be the last switch
on the commandline (followed by the literal text you want to match). Of
course, since you're PIPING the text to match, and using -f to use patterns
from a file, -e is completely inappropriate, even discounting that '-ei'
means to look for a literal 'i' in the text. Your use of -e is overriding
-f: it doesn't matter what is in the file, fgrep is matching against the
text after the e flag (which is an i).
-ie would work to specify case insensitivity in conjunction with an e flag
(with match text to follow).
Of course just specifying separate flags makes plenty of sense.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
____________________________________________________________
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