Deriving base port/package names

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

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

>If you have the index stripped to
>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

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

That seems to do the trick!

More information about the freebsd-ports mailing list