Skip to content

Instantly share code, notes, and snippets.

@Tyrael
Tyrael / revert-newline.sh
Created November 14, 2011 14:09
svn revert files in current directory having newline changes only
svn st|grep ^M|awk '{cmd = "svn diff -x --ignore-eol-style "$2;if ((cmd | getline result) <= 0) system("svn revert "$2);}'