grep -P regexp problem

Andriy Sen apsen@hotmail.com
Tue Mar 3 18:21:00 GMT 2009


Below is an example of the problem.

G:\>grep -V
GNU grep 2.5.3

Copyright (C) 1988, 1992-2002, 2004, 2005  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.


G:\>cat test.s
a
1

G:\>cat test.s | grep -P "[^0]1"
a
1

G:\>

Thanks,
Andriy

PS I had to kill cygcheck before it consumed all disk space :-) :-( By the 
looks of cygcheck.out it went into infinite loop.

 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 835986 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20090303/ba77e46a/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