Or maybe dos2unix in /usr/bin on most linux boxes (but sadly, not my mac)

-Dianne

On 9/4/07, Ged Ridgway < [log in to unmask]> wrote:
Hi,

> (Windows has a different way of representing carriage returns)

I think the following Perl one-liner should convert a Windows-created
text file (blah) to a Unix-style one, backing up the original (to
blah.orig), assuming that the VMwarePlayer image has Perl installed...

perl -p -i'.orig' -e 's/\r\n/\n/;' blah

Best,
Ged




--
Dianne Patterson, Ph.D.
[log in to unmask]
ERP Lab
University of Arizona
621-3256 (Office)