Skip to content

Instantly share code, notes, and snippets.

@skounis
Created January 3, 2022 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skounis/9084e0ed878420437283d0cf2f9ef7a0 to your computer and use it in GitHub Desktop.
Save skounis/9084e0ed878420437283d0cf2f9ef7a0 to your computer and use it in GitHub Desktop.
Find and convert files ending with CRLF to LF
#
# 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