-
-
Save YSaxon/2a4709fea0d3bf6be199bfa3320c7d7c to your computer and use it in GitHub Desktop.
Replace fancy-quotes / curly-quotes / smart-quotes with standard ASCII single- and double-quotes in bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#modified to work inline on stdin | |
sed "s/[$(echo -ne '\u00B4\u2018\u2019')]/'/g; s/[$(echo -ne '\u201C\u201D')]/\"/g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment