Skip to content

Instantly share code, notes, and snippets.

@koistya
Created February 11, 2012 17:58
Show Gist options
  • Save koistya/1803285 to your computer and use it in GitHub Desktop.
Save koistya/1803285 to your computer and use it in GitHub Desktop.
Unix2Dos shell script for Git
# Finds all .css and .js files in specified folders and converts LF line endings to CRLF
dirs=( './Packages' './App.Web/Scripts' );
find "${dirs[@]}" -type f \( -name '*.js' -o -name '*.css' \) -exec dos2unix -D -v {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment