Skip to content

Instantly share code, notes, and snippets.

@aeurielesn
Created January 29, 2011 00:19
Show Gist options
  • Save aeurielesn/801304 to your computer and use it in GitHub Desktop.
Save aeurielesn/801304 to your computer and use it in GitHub Desktop.
3 ways to change from CR+LF to LF
perl -pi -e 's/\r\n/\n/g' input.file
sed -i -e 's/\r\n/\n/g' input.file
find folder/ -type f -exec sed -i -e 's/\r\n/\n/g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment