Re: [ilugd] Removing ^M from text files in vi

2006-01-12 Thread Jagmeet Singh Hanspal
What can be the possible reason for this how can i stop this from happening how to get back my code without ^M? In vim do :%s/^M//g ^M is not literal, use CTRL-g CTRL-m to get ^M. regards, Nishant Hi, Use the dos2unix utility. (Unix Text

Re: [ilugd] Removing ^M from text files in vi

2006-01-11 Thread Nishant Sharma
What can be the possible reason for this how can i stop this from happening how to get back my code without ^M? In vim do :%s/^M//g ^M is not literal, use CTRL-g CTRL-m to get ^M. regards, Nishant -- Peace, Love and Compile the kernel. http://www.nishants.net Send instant messages

Re: [ilugd] Removing ^M from text files in vi

2006-01-11 Thread Nishant Sharma
^M is not literal, use CTRL-g CTRL-m to get ^M. Sorry for the typo, CTRL-v CTRL-m will give ^M. regards, Nishant -- Peace, Love and Compile the kernel. http://www.nishants.net Send instant messages to your online friends http://in.messenger.yahoo.com

Re: [ilugd] Removing ^M from text files in vi

2006-01-05 Thread Arshad Siddiqui
Hi, bit late in replying...but hope this might as well help. We do it this way... use the command from the top level to remove the ctrl char - find . -name *.[c,h] -exec perl -pi -e 's/\cM//g' {} \; Square Bracket contains [Type of files] so modify it as per your need. regards Arshad On

[ilugd] Removing ^M from text files in vi

2005-12-12 Thread Mayank Jain
Hi, I used Anjuta on Ubuntu 5.10 to write my code, committed it to the CVS at Novell Forge. But when i try to download the code-tarball from the CVS, i'm getting strange ^M characters at the end of every line in all files. Though i can remove them by deleting them one-by-ne, but this is getting

Re: [ilugd] Removing ^M from text files in vi

2005-12-12 Thread Kenneth Gonsalves
On Monday 12 Dec 2005 4:32 pm, Mayank Jain wrote: What can be the possible reason for this how can i stop this from happening how to get back my code without ^M? dos text format - use dos2unix utility to clean it up -- regards kg http://www.livejournal.com/users/lawgon tally ho!

Re: [ilugd] Removing ^M from text files in vi

2005-12-12 Thread Mayank Jain
On 12/12/05, Mayank Jain [EMAIL PROTECTED] wrote: I used Anjuta on Ubuntu 5.10 to write my code, committed it to the CVS at Novell Forge. But when i try to download the code-tarball from the CVS, i'm getting strange ^M characters at the end of every line in all files. I understand that this

Re: [ilugd] Removing ^M from text files in vi

2005-12-12 Thread Kenneth Gonsalves
On Monday 12 Dec 2005 4:42 pm, Mayank Jain wrote: PS: dos2unix does solves this, but why in the first place is ^M coming? maybe novellforge runs on doze? -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org.in ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

Re: [ilugd] Removing ^M from text files in vi

2005-12-12 Thread Mayank Jain
On 12/12/05, Kenneth Gonsalves [EMAIL PROTECTED] wrote: On Monday 12 Dec 2005 4:42 pm, Mayank Jain wrote: PS: dos2unix does solves this, but why in the first place is ^M coming? maybe novellforge runs on doze? I dont think so... :-P -- regards, makuchaku --- http://makuchaku.info When you

Re: [ilugd] Removing ^M from text files in vi

2005-12-12 Thread Kenneth Gonsalves
On Monday 12 Dec 2005 5:43 pm, Mayank Jain wrote: On 12/12/05, Kenneth Gonsalves [EMAIL PROTECTED] wrote: On Monday 12 Dec 2005 4:42 pm, Mayank Jain wrote: PS: dos2unix does solves this, but why in the first place is ^M coming? maybe novellforge runs on doze? I dont think so... :-P

Re: [ilugd] Removing ^M from text files in vi

2005-12-12 Thread Sankarshan Mukhopadhyay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kenneth Gonsalves wrote: is the tarball made automatically or manually? if manually maybe it is done by someone on a windoze machine? afaik the only way these ^M s can come is if the files are saved as dos text. It might be so that the script

Re: [ilugd] Removing ^M from text files in vi

2005-12-12 Thread sanjay
Mayank Jain wrote: What can be the possible reason for this how can i stop this from happening how to get back my code without ^M? do a global substitute on you file. use :%s/(press ctrl+v+m)//g this will do the job regards sanjay ___ ilugd

Re: [ilugd] Removing ^M from text files in vi

2005-12-12 Thread Mayank Jain
On 12/12/05, Kenneth Gonsalves [EMAIL PROTECTED] wrote: is the tarball made automatically or manually? if manually maybe it is done by someone on a windoze machine? afaik the only way these ^M s can come is if the files are saved as dos text. Not manually... Sakarshan, your answer can be a

Re: [ilugd] Removing ^M from text files in vi

2005-12-12 Thread Kenneth Gonsalves
On Monday 12 Dec 2005 9:19 pm, Mayank Jain wrote: Anyways, i'll be filing this as a bug with the Novell forge guys. dos2unix seems to do the work fo me. Sanjay, thanks for the solution :-) why dont you host on a linux friendly platform? -- regards kg

Re: [ilugd] Removing ^M from text files in vi

2005-12-12 Thread Mayank Jain
On 12/12/05, Kenneth Gonsalves [EMAIL PROTECTED] wrote: On Monday 12 Dec 2005 9:19 pm, Mayank Jain wrote: Anyways, i'll be filing this as a bug with the Novell forge guys. dos2unix seems to do the work fo me. Sanjay, thanks for the solution :-) why dont you host on a linux friendly