This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

recently introduced egrep problem


Up until a recent release of grep I could execute this command in
cygwin and it worked without any problems.

echo 20081013193545 | egrep -Eo '[0-9]{1,2}'

This same command still works on other distributions such as centos,
rhel4, rhel5, fedora core 9, etc.

in cygwin:
$ echo 20081013193545 | egrep -Eo '[0-9]{1,2}'
egrep: unknown option -- E
Usage: egrep [OPTION]... PATTERN [FILE]...
Try `egrep --help' for more information.

in other distros:
$ echo 20081013193545 | egrep -Eo '[0-9]{1,2}'
20
08
10
13
19
35
45

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]