Fixing Dos Line Endings
25 November 2010
tips
linux
How to
geek
code
Drupal
Sometimes, when you're running coder on a module, you'll get a lot of errors complaining about Windows line endings. This is because you should set your editor to use Unix Line endings to be consistent with all developers. See the Drupal Coding Standards for more details.
Below is a handy bash script which will help you batch convert many files from DOS to Unix line endings.