[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
egrep and [^/]+
From: |
David Watzke |
Subject: |
egrep and [^/]+ |
Date: |
Wed, 8 Aug 2007 22:52:33 +0200 |
User-agent: |
KMail/1.9.7 |
Hello,
I'd say that this command should output "sys-apps/hwinfo", but it only exits
with 1.
echo /overlay/sys-apps/hwinfo | egrep -o '[^/]+/[^/]+$'
grep -P works as expected. I'm using grep version 2.5.3.
--
David Watzke <address@hidden>
Web: http://www.watzke.cz/
Jabber: address@hidden
- egrep and [^/]+,
David Watzke <=