On Wed, 28 Apr 1999, Shane Kerr wrote:

> > Basically need a prg that strips the ^M and other MS crap from txt files
>
> You don't need a special program for this.  Try:
> perl -pe 's/\r$//' < input > output
>
> Perl is fun! Whee!!!

And slow.

tr -d '\r' <input >output

Is what I use (though granted, it doesn't do exactly the same as the
above).

Matthew.

Reply via email to