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

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

grep bug with -f option


From: vikram khatri
Subject: grep bug with -f option
Date: Fri, 15 Oct 2004 11:19:15 -0700 (PDT)

Hi Dear,

I am using grep through cygwin and I found problems
using -f option to search the files. The behavior is
very strange and some times it gives search but
sometime it does not.

I am attaching two files and I am running as this.

grep -f 1.txt 2.txt

Contents of 1.txt
+++++++++++++++++++
test1
test2
test3
test4
+++++++++++++++++++

Contents of 2.txt
++++++++++++++++++++
Hi test1

I am sending test2 for an interview.

Please let me know if test3 will be avialable to
interview test2

thanks

test4
++++++++++++++++++++

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.

Thanks for your help,

Vikram


                
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 




reply via email to

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