On Fri, 25 May 2001, baby lakshmi <[EMAIL PROTECTED]> wrote,
> 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 you have access to that unix machine, you can clean up the ^M by doing,
perl -pi -e 's/\r\n?/\n/' your_data_file
from the command line.
If you're not that lucky you can manage to have your data file edited by
real text editor (assuming your data file is ascii file) that understands
to save file in unix format (no ^M) and then have a real ftp client that
understands how to preserve that newline.
But if your ftp client is so good that it can change the dos newline
character sequence (^M aka LFCR aka \r\n) into unix style (LF aka \n) then
you have nothing to worry about.
hth
s.a.n
--
Hasanuddin Tamir: [EMAIL PROTECTED] - Trabas: www.trabas.com