On Jan 9, 2006, at 11:20, [EMAIL PROTECTED] wrote:
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.
If that's a regular text file and you are in a Unix machine run this: perl -pi.bak -e 's/\015//' filename It cleans newlines in-place and leaves a backup as filename.bak. -- fxn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>