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 uses to represent CRLF (carriage
return/line feed).  Unix based system only use one control character.
I'm not sure if that affects Python at all.  Testing out a simple
script with those characters shows that it doesn't matter...

Keith

On Jan 12, 9:46 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> 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?
>
> dos2unix
>
> --
>
> regards
> kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/web/
> Foss Conference for the common man:http://registration.fossconf.in/web/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to