[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Using sed to print package names



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