Pranita S [EMAIL PROTECTED] writes:
We use CVS as our source control system.
In this case, you probably want to remove the carraige returns from
the repository and let the NT version of CVS put them back when
checking things out. The linux version of CVS will not strip ^Ms,
afaik.
Where are
On Wed, 15 Nov 2000, John Summerfield wrote:
If you store your source code on a FAT (MSDOS) filesystem, you can get he
filesystem do do the translation on the fly - 'man mount' for details.
It might require some fiddling to keep coordinated though.
I could be wrong, but I believe Al
Hi,
As many of you suggested to use sed to
get rid of carriage return ;
sed -e "s/\r/\n/g" your_file_name
your_temp_file_name
But, this removes all occurances of r .
If i use
sed -e "s/\\r/\\n/g" your_file_name
your_temp_file_name
It does the same thing.
Also, in vi
Pranita S wrote:
Hi,
As many of you suggested to use sed to
get rid of carriage return ;
sed -e "s/\r/\n/g" your_file_name
your_temp_file_name
the correct pattern would be
"s/\r\n/\n/g" to replace all CR-NL with just NL.
"s/\r//g" should work, but if
On Tue, 14 Nov 2000, John Summerfield wrote:
If you store your source code on a FAT (MSDOS) filesystem, you can get he
filesystem do do the translation on the fly - 'man mount' for details.
It might require some fiddling to keep coordinated though.
I could be wrong, but I believe Al
f you have it somewhere else,
make sure to modify the first line accordingly.
Hope this helps,
-otto
-Original Message-
From: Pranita S [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 14, 2000 9:27 AM
To: [EMAIL PROTECTED]
Subject: Re: carriage return
Hi,
As many of you
l Message-
From: Pranita S [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 13, 2000 2:29 PM
To: [EMAIL PROTECTED]
Subject: carriage return
Hi,
We are currently porting a product that runs
on NT to Linux.
We use CVS as our source control system.
The problem is :
when we get a file on L
"GYGAX,OTTO (HP-Corvallis,ex1)" wrote:
try this
sed -e "s/\r/\n/g" your_file_name your_temp_file_name
tr -d '\r' your_file_name your_temp_file_name
(just another way, a bit simpler; there are another programs
exists also that especially does that, e.g. dos2unix etc).
Oh, ma, there are
try this
sed -e "s/\r/\n/g" your_file_name your_temp_file_name
this code will go through your entire code and remove the "^M" characters
and replace them with the plain and acceptable \n. The output will be redirec
ted
to some temporary file. You may than rename files or copy them
On Tue, 14 Nov 2000, John Summerfield wrote:
If you store your source code on a FAT (MSDOS) filesystem, you can get he
filesystem do do the translation on the fly - 'man mount' for details.
It might require some fiddling to keep coordinated though.
I could be wrong, but I believe Al Viro or
10 matches
Mail list logo