Re: carriage return

2000-11-20 Thread Alan Shutko
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

Re: carriage return

2000-11-15 Thread Mike A. Harris
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

Re: carriage return

2000-11-14 Thread Pranita S
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

Re: carriage return

2000-11-14 Thread Thomas Dodd
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

Re: carriage return

2000-11-14 Thread John Summerfield
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

RE: carriage return

2000-11-14 Thread GYGAX,OTTO (HP-Corvallis,ex1)
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

RE: carriage return

2000-11-13 Thread GYGAX,OTTO (HP-Corvallis,ex1)
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

Re: carriage return

2000-11-13 Thread Michael Ju. Tokarev
"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

Re: carriage return

2000-11-13 Thread John Summerfield
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

Re: carriage return

2000-11-13 Thread Mike A. Harris
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