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!