I did not extensively test it.  I'm not fluent in sed yet so I used something 
I knew and understood.

I just wanted to point out those two apps did not support epoch and that the 
patches I've sent fixed my itch of the moment.  It really did.  My use case 
was: "Version: 1:10.b.9-4". 

Here is a more solid one liner which doesn't break on longer epoch and absent 
debian version.

perl -e 'while (<>) {/Version: ([0-9]+:)*([0-9a-zA-Z\.]*)(-.*)*$/ && 
printf "$2" . "\n";}'

but, perl or sed, whatever works you know :)

Attachment: pgpW8cTjmeQUq.pgp
Description: PGP signature

Reply via email to