[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
egrep 2.4 problem with '^^' pattern?
From: |
Don Buchholz |
Subject: |
egrep 2.4 problem with '^^' pattern? |
Date: |
Tue, 10 Apr 2001 12:51:08 -0700 |
Sample input stream ...
^ 2001jan30 inetd-0.16-7.i386.rpm
^ 2001jan29 bind-8.2.3-0.6.x.i386.rpm bind-utils-8.2.3-0.6.x.i386.rpm
^ 2001jan17 iputils-20001010-1.6x.i386.rpm
traceroute-1.4a5-24.6x.i386.rpm
# comments here
^ 2001jan17 dump-0.4b19-5.6x.i386.rpm rmt-0.4b19-5.6x.i386.rpm
^U 2001mar19 db3-3.1.17-4.6x.i386.rpm db3-devel-3.1.17-4.6x.i386.rpm
^ 2001jan17 rpm-3.0.5-9.6x.i386.rpm rpm-build-3.0.5-9.6x.i386.rpm
(The circumflexes are in column #1.)
Using the regexp '^^U* ' [0x5E 0x5E 0x2A 0x55 0x0A 0x20], "grep" matches
all the correct lines, but "egrep" matches none. However, "egrep ^^"
matches *all* lines!
% grep '^^U* ' .rpm_changes
^ 2001jan30 inetd-0.16-7.i386.rpm
^ 2001jan29 bind-8.2.3-0.6.x.i386.rpm bind-utils-8.2.3-0.6.x.i386.rpm
^ 2001jan17 iputils-20001010-1.6x.i386.rpm
traceroute-1.4a5-24.6x.i386.rpm
^ 2001jan17 dump-0.4b19-5.6x.i386.rpm rmt-0.4b19-5.6x.i386.rpm
^U 2001mar19 db3-3.1.17-4.6x.i386.rpm db3-devel-3.1.17-4.6x.i386.rpm
^ 2001jan17 rpm-3.0.5-9.6x.i386.rpm rpm-build-3.0.5-9.6x.i386.rpm
% egrep '^^U* ' .rpm_changes
% egrep '^^' .rpm_changes
^ 2001jan30 inetd-0.16-7.i386.rpm
^ 2001jan29 bind-8.2.3-0.6.x.i386.rpm bind-utils-8.2.3-0.6.x.i386.rpm
^ 2001jan17 iputils-20001010-1.6x.i386.rpm
traceroute-1.4a5-24.6x.i386.rpm
# comments here
^ 2001jan17 dump-0.4b19-5.6x.i386.rpm rmt-0.4b19-5.6x.i386.rpm
^U 2001mar19 db3-3.1.17-4.6x.i386.rpm db3-devel-3.1.17-4.6x.i386.rpm
^ 2001jan17 rpm-3.0.5-9.6x.i386.rpm rpm-build-3.0.5-9.6x.i386.rpm
--
- Don Buchholz <address@hidden>
- TrueDisk, 7431 NW Evergreen Pkwy - #110, Hillsboro, OR 97124
- voice: 503/615-0888 x266 FAX: 503/640-3365
- egrep 2.4 problem with '^^' pattern?,
Don Buchholz <=