Skip to content

Instantly share code, notes, and snippets.

@joeybaker
Created May 10, 2012 18:34
Show Gist options
  • Save joeybaker/2654937 to your computer and use it in GitHub Desktop.
Save joeybaker/2654937 to your computer and use it in GitHub Desktop.
Batch Convert CLRF to LF
find . -type f -not -iname '*.png' -not -iname '*.jpg' -not -iname '*.jpeg' -not -iname '*.gif' -not -iname '*.tif' -not -iname '*.tiff' -not -iname '.git' -exec perl -pi -e 's/\r\n?/\n/g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment