Subject: Re: URGENT GZIP HELP NEEDED
To: Michal Pasternak <michal@pasternak.w.lub.pl>
From: Thomas Bieg <tomsbsd03@t-email.de>
List: netbsd-help
Date: 06/20/2003 20:57:51
Micha³ Pasternak wrote:
> Thomas Bieg [Fri, Jun 20, 2003 at 08:28:40PM +0200]:
>
>>But you could of course write a few lines of code that will do
>>the job. Someone got a one-liner?
>
>
> man tr
Doesn't work, as tr does its conversion character based, not string
based. (And just ripping off all <CR>s is not the same...)
This (quick hack...) seems to work:
sed 's/.$//' < oldfile > newfile
(blindly removes the last character before every linefeed)
Tom