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, would it cause problems?
>
> If you're on a Linux box (you might want to mention
> details like that:) you could try to apply the dos2unix
> command on each file.
>
> find . -type f | xargs dos2unix
except if you, like me, don't have dos2unix on your linux box... at
which point you just do something like:
find . -type f | xargs sed -i -s -e 's#\r$##;'
HTH, HAND,
--
Brett Parker
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---