Convert all files in a directory to Unix format Set up dos2unix Run the following in the directory find . -type f -exec dos2unix {} \;