Last active
August 29, 2015 14:23
-
-
Save krasnobaev/16d89d2ad8c91bf0dfaa to your computer and use it in GitHub Desktop.
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
// convert tabs to 4 spaces | |
find . -type f -exec sed -i 's/[ \t]*$//' {} \; | |
// remove trailing spaces | |
find . -type f -exec sed -i 's/[ \t]*$//' {} \; | |
// add new line at the end of file | |
find . -type f -exec sed -i -e '$a\' {} \; | |
// convert CRLF to LF | |
find . -type f -exec sed -i 's/\r$//' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment