Created
January 3, 2022 16:51
-
-
Save skounis/9084e0ed878420437283d0cf2f9ef7a0 to your computer and use it in GitHub Desktop.
Find and convert files ending with CRLF to LF
This file contains 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
# | |
# Reference | |
# https://www.baeldung.com/linux/find-convert-files-with-crlf | |
# | |
grep -rIl -m 1 $'\r' | xargs -P0 -I {} dos2unix {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment