Deriving base port/package names

Ronald F. Guilmette rfg at tristatelogic.com
Fri Apr 8 17:49:09 UTC 2016


In message <5707553C.40008 at quip.cz>, Miroslav Lachman <000.fbsd at quip.cz> wrote:

>If you have the index stripped to
>
>yorick-2.2.04_1
>
>This will do the trick
>sed 's/-[0-9a-z.,_+]*$//g' master-index.txt


Thank you.  Your response made me realize that there's an even simpler
solution...

sed 's/-[^\-]*$//'

That seems to do the trick!


More information about the freebsd-ports mailing list