Or you could....
substitute "filename" for your file
cat filename | tr -d '\15' > newfilename
-----Original Message-----
From: Shane Kerr [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 28, 1999 10:39 AM
To: linux
Cc: Mailing List
Subject: Re: need a prg like dos2unix
On Wed, 28 Apr 1999, linux wrote:
> Someone mentioned one last week, but I dont remember the name of the
> program.
>
> 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!!! (This is actually probably better handled in "sed",
but I don't know sed, and since I have Perl, why would I bother learning
it?)
Shane