Following situation:
I\'m working on a Mac running OS X and recently joined a project whose members so far all use Windows. One of my first tasks was to set up the c
Here a solution if using sed:
find . -type f -exec sed -i 's/\r$//' {} \;
-i stands for in-place, if you want to create a backup as well use -i.bak
-i
-i.bak
's/\r$//' will replace all carriage returns(\r) at end of each line
's/\r$//'
\r