grep -P regexp problem

Eric Blake ebb9@byu.net
Wed Mar 4 18:31:00 GMT 2009


Andriy Sen <apsen <at> hotmail.com> writes:

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

Useless use of cat.  It is more efficient to write:

grep -P "^(|[^0])1" test.s

-- 
Eric Blake




--
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