e-
From: Stephen P. Potter [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 8:45 AM
To: baby lakshmi
Cc: [EMAIL PROTECTED]
Subject: Re: reg ftp
Lightning flashed, thunder crashed and "baby lakshmi"
<[EMAIL PROTECTED]
> whispered:
| hi
| while doing ftp from windows to unix, th
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
t: Friday, May 25, 2001 4:07 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: reg ftp
hi
thank you for ur mail. i have given bin while ftping it. still i am getting
the same problem.
Thank you
regards
babylakshmi
>From: "Antonio Greco" <[EMAIL PROTECTED]>
>To:
Here's one I like... (for removing evil ctrl M's)
perl -w -i -p -e "s/\x0d//g" filename
Stephen Neu
Internet Development
Characterlink.net
(630) 323-9800 ext. 235
#!/usr/bin/perl
#JustAnotherPerlHacker
($, ,@j15)=('t','Kvt' ,' Bop','ifs',
' Q', 'sm Ibdl' ,'s') ;foreach
( @j15){ tr/B-Zb-
How 'bout ftp in ASCII mode.
I recon' that's what it's for.
Greg
-Original Message-
From: baby lakshmi [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 1:50 AM
To: [EMAIL PROTECTED]
Subject: reg ftp
hi
while doing ftp from windows to unix, the file contains
On Fri, 25 May 2001, baby lakshmi wrote:
> 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.
Use Perl to do it:
perl -pi.bak -e 's/\cM//g' filename1 filename
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 machin
If you use ftp in text mode, it should add the ^M when going towards
windows and remove it when going away. This *should* be automatic.
If this doesn't work, then you can handle it in your perl script.
Instead of using chomp to remove the from the end of your line, use
$line=~s/[\r\n]+$//;
hi
thank you for ur mail. i have given bin while ftping it. still i am getting
the same problem.
Thank you
regards
babylakshmi
>From: "Antonio Greco" <[EMAIL PROTECTED]>
>To: "baby lakshmi" <[EMAIL PROTECTED]>
>Subject: Re: reg ftp
>Date: Fri, 25
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.
Thank you
Regards
babylakshmi
__
10 matches
Mail list logo