Skip to content

Instantly share code, notes, and snippets.

@sflinter
Created January 20, 2011 22:47
Show Gist options
  • Save sflinter/788857 to your computer and use it in GitHub Desktop.
Save sflinter/788857 to your computer and use it in GitHub Desktop.
A simple ruby command-line script to convert DOS ending files ('\r\n') to UNIX ending ones ('\n')
# Convert all files (*) from DOS endings to UNIX endings, and create a back-up of each
ruby -i.bak -ple '' *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment