Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] sed/awk question
Date: Tue, 22 Nov 2011 03:28:09
Message-Id: CAC=wYCG1mqQc5=Xs+KYbw_4n6KsDkWu12sKZG7xF4G+0V4_WUg@mail.gmail.com
In Reply to: Re: [gentoo-user] sed/awk question by Pandu Poluan
1 >> sed -r -e 's/(.*)-[0-9].*/\1/'
2 >
3 > You know, that looks familiar... are you trying to get a package name from
4 > the list of eix-installed? :-)
5
6 No - its non-gentoo. In this case it hasn't worked
7
8 $ echo net-snmp-5.3.2.2-5.cp843034001.i386.rpm | sed -r -e 's/(.*)-[0-9].*/\1/'
9 net-snmp-5.3.2.2

Replies

Subject Author
Re: [gentoo-user] sed/awk question Pandu Poluan <pandu@××××××.info>