On Tue, 9 Oct 2001, Pablo Ares Gastesi wrote:
That error generally means that egrep was called with the -F or -G flag or fgrep was called with the -E or -G flag. Basically, the matchers
I solved the problem. There was a file called -FILE in that directory.
Ok. grep took that to mean flags -F -I -L and -E. Basically, -F and -E together not allowed. You can solve the problem by putting -- before the pattern to tell grep that options are over, or alternately, put the pattern in quotes, and set POSIXLY_CORRECT, which will assume that everything after the pattern is a filename.
Philip