X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <63fec1650810140416y3092fcccg54b274b6777b66aa@mail.gmail.com>
Date: Tue, 14 Oct 2008 07:16:11 -0400
From: "rick lavery" <devrick88@gmail.com>
To: cygwin@cygwin.com
Subject: recently introduced egrep problem
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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/

