Re: remove ^M: project moved from window to linux

2008-01-13 Thread Brett Parker
On 13 Jan 11:20, Jonathan Ballet wrote: > You're right, Unix based systems use only the line feed (LF) control > character (which is represented by "\r" in Vim, BTW). > You might want to read this [1] for further explanations. Actually, LF is \n, CR is \r (\r being "return", short for carriage

Re: remove ^M: project moved from window to linux

2008-01-13 Thread Jonathan Ballet
Hi, Le Sat, 12 Jan 2008 20:30:25 -0800 (PST), ocgstyles <[EMAIL PROTECTED]> a écrit : > I need to do that often at work when Windows files are moved over to > AIX. I just use vi. The key sequence is: > > :%s/^M// If you want to mimic dos2unix, you should use :%s/^M$// because

Re: remove ^M: project moved from window to linux

2008-01-12 Thread ocgstyles
I need to do that often at work when Windows files are moved over to AIX. I just use vi. The key sequence is: :%s/^M// To create the ^M character, press Ctrl+V, then M. I'm not sure what that character is (never bothered to look), but I think may be that extra control character that Windows

Re: remove ^M: project moved from window to linux

2008-01-12 Thread Kenneth Gonsalves
On 12-Jan-08, at 10:12 PM, crybaby wrote: > What is the fastest way to remove ^M from every files in main project > folder and apps folders. Doing it by hand seems time consuming. Is > there a simple script take care of this? if I just leave the ^M in > python code, would it cause problems?

Re: remove ^M: project moved from window to linux

2008-01-12 Thread Brett Parker
On 12 Jan 17:47, Lars Stavholm wrote: > > crybaby wrote: > > What is the fastest way to remove ^M from every files in main project > > folder and apps folders. Doing it by hand seems time consuming. Is > > there a simple script take care of this? if I just leave the ^M in > > python code,

Re: remove ^M: project moved from window to linux

2008-01-12 Thread Lars Stavholm
crybaby wrote: > What is the fastest way to remove ^M from every files in main project > folder and apps folders. Doing it by hand seems time consuming. Is > there a simple script take care of this? if I just leave the ^M in > python code, would it cause problems? If you're on a Linux box

remove ^M: project moved from window to linux

2008-01-12 Thread crybaby
What is the fastest way to remove ^M from every files in main project folder and apps folders. Doing it by hand seems time consuming. Is there a simple script take care of this? if I just leave the ^M in python code, would it cause problems?