Skip to content

Instantly share code, notes, and snippets.

@liuwen-lvtu
Created October 4, 2011 09:07
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 liuwen-lvtu/1261197 to your computer and use it in GitHub Desktop.
Save liuwen-lvtu/1261197 to your computer and use it in GitHub Desktop.
recursively replace ^M with unix crlf
perl -pi -e 's/oldstring/newstring/g' `find ./ -name *.html`
perl -pi -e 'tr/\cM//d;' `find ./ -name "*.py"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment