perl -i -p -e 's/\r$//' `find *.php`
>perl -i -p -e 's/\r$//' `find *.php` вроде как dos2unix *.php
вроде как dos2unix *.php