[ale] Using sed to print package names

Matty matty91 at gmail.com
Sun Sep 6 11:13:29 EDT 2009


Howdy,

Does anyone happen to have a sed recipe to split a package name like:

yum-metadata-parser-1.1.2-12.fc11.x86_64

Into:

$1 -> yum-metadata-parser
$2 -> -1.*

I have a working solution in perl and python, but sed is another story.

Thanks,
- Ryan
--
http://prefetch.net


More information about the Ale mailing list