[Bug 489] New: grep -o doesn't give me the expected output

bugzilla at busybox.net bugzilla at busybox.net
Tue Jul 28 08:29:04 UTC 2009


https://bugs.busybox.net/show_bug.cgi?id=489

             Build: 1.13.4
           Summary: grep -o doesn't give me the expected output
           Product: Busybox
           Version: 1.13.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Standard Compliance
        AssignedTo: unassigned at busybox.net
        ReportedBy: fraterbugzilla at hetemail.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


I like to use "egrep -o" in scripts where I want to parse a certain
expression...

I have a DD-WRT router and also have optware installed so I can do a direct
comparison.

root at WAN:~# nvram get wl0_maclist 2>/dev/null
00:19:3E:00:AA:5E 00:1D:60:3D:3A:FB 00:22:43:49:FB:AA
root at WAN:~# nvram get wl0_maclist 2>/dev/null | egrep -o
'([[:xdigit:]]{2}[:-]){5}[[:xdigit:]]{2}'
00:19:3E:00:AA:5E
root at WAN:~# nvram get wl0_maclist 2>/dev/null | /opt/bin/egrep -o
'([[:xdigit:]]{2}[:-]){5}[[:xdigit:]]{2}'
00:19:3E:00:AA:5E
00:1D:60:3D:3A:FB
00:22:43:49:FB:AA


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list