Another way would be like this... $ col -bx < dosfile > newfile
It's important that you use a different file name for the "newfile". Max -----Original Message----- From: Shaun Fryer [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 5:03 PM To: Perl Beginners Subject: Removing ^M (Carriage Return) from files on *nix Someone mentioned this problem recently. Here's a solution. Open the file in vi and type... :g/[Ctrl+v][Ctrl+m]/s/// That will remove all the Carriage Returns from the file in one shot. =================== Shaun Fryer =================== London Webmasters http://LWEB.NET PH: 519-858-9660 FX: 519-858-9024 =================== -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]