bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep bug with -f option


From: Eli Zaretskii
Subject: Re: grep bug with -f option
Date: Sat, 16 Oct 2004 14:26:32 +0200

> Date: Fri, 15 Oct 2004 11:19:15 -0700 (PDT)
> From: vikram khatri <address@hidden>
> 
> The output of grep is 
> C:\>grep -f 1.txt 2.txt
> Hi test1
> Please let me know if test3 will be avialable to
> interview test2
> test4
> 
> The problem: It does not show 2nd line and if you play
> with 2.txt with different things, the behaviour is
> erratic.

This doesn't happen for me with the DJGPP port of Grep 2.4.

What version of Grep do you have from Cygwin?

One thing I'd suggest to make sure is that all the lines in 1.txt have
the same end-of-line format (i.e. either they all end in a single
newline character or they all end in the CR-LF pair).  Mixed EOL
format can confuse Grep.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]