-1

Someone in our development team merged in code but with windows newline characters. And git, merging tool get crazy about it. How is it possible to replace all 0D0A -> 0A in the whole Xcode project? If I do it in Xcode, Xcode crashed.

enter image description here

János
  • 32,867
  • 38
  • 193
  • 353

1 Answers1

0

This worked:

perl -pi -w -e 's/\r\n/\n/g;' *.h
perl -pi -w -e 's/\r\n/\n/g;' *.m
János
  • 32,867
  • 38
  • 193
  • 353