>> 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.

 $ perl -i .bak -npe 's/\r\n/\n/g' <file>

--
Muthukumar | Mail: [EMAIL PROTECTED] | www:
http://geocities.com/kmuthu_gct/

Reply via email to