Bo's blog

Wednesday, July 14, 2010

command to find all dos formatted file and convert to UNIX format

 

find . -name '*' -print | xargs -i file {} | grep CRLF | cut -d : -f 1 | xargs -i dos2unix {}