grep: $ in PATTERN doesn't seem to work properly

Koduru, Seshasai Seshasai.Koduru@ca.com
Sat Aug 21 16:20:00 GMT 2004


Hi,

When $ is used in the PATTERN of grep command, it doesn't seem to work
properly on my machine.

I have run the following under cygwin.bat shell.

$ cat tmp
Line 1
Line 2

Line 3
Line 4
Line 5

$ grep '1$' tmp
(Gives no output. It should give output as
Line 1)

$ grep -e '1$ tmp
(Gives no output. It should give output as
Line 1)

$ grep -v '^$' tmp
(Gives no output. It should give output as
Line 1
Line 2
Line 3
Line 4
Line 5)

I am also attaching the output of "cygcheck -s -v -r". Can someone
please tell what's going wrong? Install problem or other?

Thanks,
Seshasai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 15686 bytes
Desc: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040821/368c81f7/attachment.obj>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list