Lightning flashed, thunder crashed and "baby lakshmi" <[EMAIL PROTECTED]
> whispered:
| hi
| while doing ftp from windows to unix, the file contains ctl M at the end of 
| each line. my file is a huge data file. i am not able to delete that. is 
| there any better way to delete it.
| If anyone can answer this, it wud be helpful to me.

I don't understand your question.  Are you saying you can't delete the ^M?
First thing to do is to transfer your files correctly, using bin(ary)
mode.  That will do proper EOL translation for you.  As far as fixing it
with perl, try something like

perl -pi.bak -e 's/\cM$//' [ filename ]

This will create a backup file (called filename.bak) and a fixed file
without the ^Ms.

-spp

Reply via email to