Last active
August 29, 2015 13:58
-
-
Save nhanb/9988289 to your computer and use it in GitHub Desktop.
clean up non-ascii characters
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
# Run this in _posts, obviously | |
files=`find . -name "*.mkd"` | |
for file in $files; do | |
sed -i 's/–/-/g' $file | |
sed -i 's/ / /g' $file | |
sed -i "s/’/'/g" $file | |
sed -i "s/‘/'/g" $file | |
sed -i 's/“/"/g' $file | |
sed -i 's/”/"/g' $file | |
sed -i 's/…/.../g' $file | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment