>> sed -r -e 's/(.*)-[0-9].*/\1/' > > You know, that looks familiar... are you trying to get a package name from > the list of eix-installed? :-)
No - its non-gentoo. In this case it hasn't worked $ echo net-snmp-5.3.2.2-5.cp843034001.i386.rpm | sed -r -e 's/(.*)-[0-9].*/\1/' net-snmp-5.3.2.2