Last active
September 29, 2015 21:07
-
-
Save JanTvrdik/1667698 to your computer and use it in GitHub Desktop.
Shell script for automatic fixing EOL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . \( \ | |
-name '*.php' -o \ | |
-name '*.phtml' -o \ | |
-name '*.html' -o \ | |
-name '*.latte' -o \ | |
-name '*.neon' -o \ | |
-name '*.css' -o \ | |
-name '*.js' -o \ | |
-name '*.txt' -o \ | |
-name '*.config' -o \ | |
-name '*.c' -o \ | |
-name '*.cpp' -o \ | |
-name '*.h' -o \ | |
-name '.htaccess' -o \ | |
-name '.gitignore' \ | |
\) \ | |
-exec echo {} \; \ | |
-exec dos2unix --d2u {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment