Last active
February 28, 2018 10:44
-
-
Save renkin/da5cb706246edb312a58b68874c7208d to your computer and use it in GitHub Desktop.
Search for windows style line breaks
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
# Only search | |
grep -rIUl --exclude-dir=modules $(printf '\r') * | |
# Search and fix | |
grep -rIUl --exclude-dir=modules $(printf '\r') * | xargs dos2unix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment