piątek, 22 maja 2009

End-of-line characters conversion between Windows and Linux

Just started to work for a project where the majority of the people use Windows. Quick fix for ^M occuring in shell scripts:

sudo aptitude install tofrodos

and then

find . -name '*.sh' | xargs dos2unix -d

(could be with exec, but for a small number of files it does not really matter)

Brak komentarzy:

Prześlij komentarz