open in VIM nd write %s/^m// it will remove all the ^m in vim Cheers Manoj
________________________________ From: swayam panda [mailto:[EMAIL PROTECTED] Sent: Mon 1/9/2006 5:22 PM To: [EMAIL PROTECTED]; beginners@perl.org Subject: Re: ^M Hi. If u will open the file in VIM u will get the new line character as ^m. Correct me if i am wrong ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <beginners@perl.org> Sent: Monday, January 09, 2006 3:50 PM Subject: ^M Hallo, I have to process some files with more than 100000 lines. At the end of each line is the sign ^M. How could I remove it. Mit freundlichen Grüssen /with best regards Matthias Hämmerle T-Systems Business Services GmbH TCO IT CC IT BP-Competence Center OSS Development Reporting Solutions (InfoVista) Address: Fasanenweg 9, D-70771 Leinfelden-Echterdingen Phone: +49 (711) 972-49833 Fax: +49 (711) 120303-014889 Mobile: +49 (171) 4064266 E-Mail: <mailto:[EMAIL PROTECTED]> mailto:[EMAIL PROTECTED] Internet: <http://www.t-systems.com> http://www.t-systems.com Hinweis: Diese Nachricht oder deren Anlagen können vertraulichen Inhalts, oder auf eine andere Weise schutzwürdig sein. Sollten Sie nicht der beabsichtigte Empfänger der Nachricht sein, oder diese Nachricht versehentlich erhalten haben, sind Sie nicht berechtigt, den Inhalt der Nachricht weiterzuleiten, zu kopieren oder den Inhalt auf eine andere Art zu verbreiten. Wenn Sie diese Nachricht versehentlich erhalten haben, benachrichtigen Sie bitte den Absender und löschen Sie die Nachricht mitsamt den Anlagen. Vielen Dank. Notice: This message and any attachments may be of a confidential nature or may require protection for other reasons. Should you not be the intended recipient of this message or should you have received this message by mistake, you are not allowed to forward, copy or disseminate the content of the message in any form. Should you have received this message by mistake, please inform the sender and delete the message along with the enclosures. Thank you. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>