Fix Line Breaks

This post was published 10 years, 8 months ago. Due to the rapidly evolving world of technology, some concepts may no longer be applicable.

To convert all files:

$ find . -type f -name -exec dos2unix {} \;

To convert specific files (by type):

$ find . -type f \( -name "*.php" -o -name "*.txt" -o -name "*.css" \) -exec dos2unix {} \;

Leave a Reply

Your email address will not be published. Required fields are marked *