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)
+-- 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,
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
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
--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
--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
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
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
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
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
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
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
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:
13 matches
Mail list logo