Re: How to remove ^M character

2003-08-04 Thread C Peter Biessener
You can also use ASCII mode in ftp, it will translate the line ends for you. BINARY mode is for programs and archive files (zip, tar, tgz, etc...) Simon Barner wrote: Hi, I ftp'd a file from windows to freebsdnot its every line has ^M at its end. Is there some command in vi (or some way)

Re: How to remove ^M character

2003-08-02 Thread Shantanu Mahajan
+-- Anil Garg [freebsd] [01-08-03 14:01 +0530]: | Hi, | | I ftp'd a file from windows to freebsdnot its every line has ^M at its | end. | Is there some command in vi (or some way) by whcih ^M can be removed. | | Thanks | Anil col -bx oldfile newfile Regards,

Re: How to remove ^M character

2003-08-02 Thread Bill Campbell
On Sat, Aug 02, 2003 at 02:49:40PM +0530, Shantanu Mahajan wrote: +-- Anil Garg [freebsd] [01-08-03 14:01 +0530]: | Hi, | | I ftp'd a file from windows to freebsdnot its every line has ^M at its | end. | Is there some command in vi (or some way) by whcih ^M can be removed. In the future when

How to remove ^M character

2003-08-01 Thread Anil Garg
Hi, I ftp'd a file from windows to freebsdnot its every line has ^M at its end. Is there some command in vi (or some way) by whcih ^M can be removed. Thanks Anil ___ [EMAIL PROTECTED] mailing list

Re: How to remove ^M character

2003-08-01 Thread Karl Pielorz
--On 01 August 2003 14:01 +0530 Anil Garg [EMAIL PROTECTED] wrote: Hi, I ftp'd a file from windows to freebsdnot its every line has ^M at its end. Is there some command in vi (or some way) by which ^M can be removed. Or, on second thoughts - upload it via ftp in ASCII mode, not binary mode

Re: How to remove ^M character

2003-08-01 Thread Karl Pielorz
--On 01 August 2003 14:01 +0530 Anil Garg [EMAIL PROTECTED] wrote: Hi, I ftp'd a file from windows to freebsdnot its every line has ^M at its end. Is there some command in vi (or some way) by which ^M can be removed. man tr or simply, cat file | tr -d \r newfile -Kp

Re: How to remove ^M character

2003-08-01 Thread Anil Garg
thanks :) - Original Message - From: Karl Pielorz [EMAIL PROTECTED] To: Anil Garg [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, August 01, 2003 2:07 PM Subject: Re: How to remove ^M character --On 01 August 2003 14:01 +0530 Anil Garg [EMAIL PROTECTED] wrote: Hi, I ftp'd

RE: How to remove ^M character

2003-08-01 Thread Philip Payne
HI, I ftp'd a file from windows to freebsdnot its every line has ^M at its end. Is there some command in vi (or some way) by whcih ^M can be removed. Thanks Anil At the vi command line :1,$:s/here type ctrl-v then ctrl-M to get the ^M control character// Basically it's just

Re: How to remove ^M character

2003-08-01 Thread Simon Barner
Hi, I ftp'd a file from windows to freebsdnot its every line has ^M at its end. Is there some command in vi (or some way) by whcih ^M can be removed. You can use dos2unix(1) for that. There is also the complementary tool unix2dos(1). Simon signature.asc Description: Digital signature

Re: How to remove ^M character

2003-08-01 Thread Adam
On Fri, 2003-08-01 at 04:31, Anil Garg wrote: I ftp'd a file from windows to freebsdnot its every line has ^M at its end. Is there some command in vi (or some way) by whcih ^M can be removed. In general, you can use a tool such as converters/unix2dos However, in regards to FTP, you simply

Re: How to remove ^M character

2003-08-01 Thread Kevin Kinsey
On Fri, Aug 01, 2003 at 02:01:18PM +0530, Anil Garg wrote: Hi, I ftp'd a file from windows to freebsdnot its every line has ^M at its end. Is there some command in vi (or some way) by whcih ^M can be removed. Thanks Anil YAW (yet another way...) sed 's/.$//' infile.txt outfile.txt

Re: How to remove ^M character

2003-08-01 Thread Paul Beard
On Friday, August 01, 2003, at 01:31AM, Anil Garg [EMAIL PROTECTED] wrote: Hi, I ftp'd a file from windows to freebsdnot its every line has ^M at its end. Is there some command in vi (or some way) by whcih ^M can be removed. got room for one more? perl -pi -e s#\\r#\\n#g your file name

Re: How to remove ^M character

2003-08-01 Thread parv
in message [EMAIL PROTECTED], wrote Paul Beard thusly... got room for one more? perl -pi -e s#\\r#\\n#g your file name Doesn't work... file p p: ASCII text unixdos p q UnixDos 1.0.13 - SUMMARY: A total of 3 end of line characters were modified. file p q p: ASCII text q: