Date: Fri, 08 Apr 2016 10:49:07 -0700 From: "Ronald F. Guilmette" <rfg@tristatelogic.com> To: freebsd-ports@freebsd.org Subject: Re: Deriving base port/package names Message-ID: <54889.1460137747@server1.tristatelogic.com> In-Reply-To: <5707553C.40008@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <5707553C.40008@quip.cz>, Miroslav Lachman <000.fbsd@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!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54889.1460137747>