: Conversion Line-feed or carriage-return!!!
Hi,
I have a file with characters might be carriage returns. The
file looks
like the following (I opened it in vi)
^M ^M
^M ^M
^M
On Tue, Feb 13, 2001 at 11:14:24AM -0500, Anthony E . Greene [EMAIL PROTECTED] wrote:
| On Tue, 13 Feb 2001 07:48:10 Kiran Kumar M wrote:
| I have a file with characters might be carriage returns. The file looks
| like the following (I opened it in vi)
|
| ^M
Seems for beginner in linux..
On Wed, 14 Feb 2001, Vineeta wrote:
You can use sed command.
Suppose you have your text in the file "test" as follows:
^M ^M
^M ^M
^M
On Wed, 14 Feb 2001, Kiran Kumar M wrote:
Thanks.
Kiran
That's easy to fix... besides what they told you to do
here, there's a util called "dos2unix" that'll convert
from/to dos files. ;-) It can probably be found on
FreshMeat.
John
___
On Tue, 13 Feb 2001 07:48:10 Kiran Kumar M wrote:
I have a file with characters might be carriage returns. The file looks
like the following (I opened it in vi)
^M^M
^M^M
^M
Hi,
I have a file with characters might be carriage returns. The file looks
like the following (I opened it in vi)
^M ^M
^M ^M
^M ^M
I want to
sed 's/Ctr-VCtrl-M//' {file} {outfile}
or, in vi
:%s/Ctrl-VCtrl-M//g
Bill
-Original Message-
From: Kiran Kumar M [mailto:[EMAIL PROTECTED]]
Sent: 13 February 2001 12:48
To: '[EMAIL PROTECTED]'
Subject: Conversion Line-feed or carriage-return!!!
Hi,
I have a file
On Tue, 13 Feb 2001 07:48:10 Kiran Kumar M wrote:
I have a file with characters might be carriage returns. The file looks
like the following (I opened it in vi)
^M^M
^M^M
^M
That can be done, but I want to do it by using a command. Thanks, Anyway I
got it.
Kiran
On Tue, 13 Feb 2001, Anthony E . Greene wrote:
On Tue, 13 Feb 2001 07:48:10 Kiran Kumar M wrote:
I have a file with characters might be carriage returns. The file looks
like the following (I opened it
You can use sed command.
Suppose you have your text in the file "test" as follows:
^M ^M
^M ^M
^M ^M
Then,use the foll. command:
cat test|sed 's/\^M//g'
Take
10 matches
Mail list logo