Skip to content

Instantly share code, notes, and snippets.

@kairyu
Created March 7, 2016 02:48
Show Gist options
  • Save kairyu/26f634053d2683aa762d to your computer and use it in GitHub Desktop.
Save kairyu/26f634053d2683aa762d to your computer and use it in GitHub Desktop.
Replace mixed newline with DOS newline
find -name *.c -or -name *.h | xargs perl -pei 's/[^\r]\n/\r\n/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment