Skip to content

Instantly share code, notes, and snippets.

@lordastley
Created February 2, 2012 03:54
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 lordastley/1721340 to your computer and use it in GitHub Desktop.
Save lordastley/1721340 to your computer and use it in GitHub Desktop.
Kill Microsoft Word "Smart" Quotes and other fancy characters from text files.
s/[\x93\x94]/\"/g
s/[\x91\x92]/\'/g
s/[\x95\xa6]/\*/g
s/[\x85\x96\x97]/\-/g
Works in sed, vim, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment