Skip to content

Instantly share code, notes, and snippets.

@enten
Created February 12, 2016 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enten/0b5efd62544e2e8e16b7 to your computer and use it in GitHub Desktop.
Save enten/0b5efd62544e2e8e16b7 to your computer and use it in GitHub Desktop.
for i in $(git status | grep modified | awk -F " " '{print $2}');
do cat $i | tr -d '\r' > $i.tmp; mv $i.tmp $i;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment