bug-grep
[Top][All Lists]
Advanced

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

a bug in ALL grep?


From: Meir
Subject: a bug in ALL grep?
Date: Fri, 15 Feb 2008 13:10:04 -0500

Hi,

I am trying to check that a file does not contain lines with terminating
tabs (see attached). The file is about 1000 lines long in the format of
<word><tab><tab><word><CR>, yet my "grep" finds 5 lines with terminating
tabs. I checked the file with a binary editor - nope!

all the info (input, output, version, and one "good" line for comparison) is
included in the attached file, which also appears below.

I run the same test on Ubantu and on SuSE 9.3 WITH THE SAME RESULTS (i.e.
the same 5 lines are WRONGLY identified!)


I would appreciate your feedback

Meir Razy
address@hidden
NorthSide Inc


start of input file
-----------------------
(a "good" line)
association             consorting

(the wrong lines)
attachment              attaching
attainment              achieving
attrition               rubbing
personification         attributing
pluralization           attributing

-----------------------
end of input file

the command:
\cygwin\bin\grep -n "[a-z]*\t\t[a-z]*\t" input.txt 

command output:
----------------

5:attachment            attaching
6:attainment            achieving
7:attrition             rubbing
8:personification               attributing
9:pluralization         attributing

end of command output
----------------

Version:
--------
Report bugs to <address@hidden>.
grep (GNU grep) 2.5.1

Help:
-----
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.

<snipped>

Attachment: input.txt
Description: Text document


reply via email to

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