Created
August 13, 2019 20:31
-
-
Save peteristhegreat/8191355594db5bd466489849965adf4c to your computer and use it in GitHub Desktop.
Remove Unicode Characters from a list of files
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
#!/usr/bin/env bash | |
while read p; do | |
echo "$p" | |
#cat "$p" | gtr -d '\200-\377' | sponge "$p" | |
#iconv -f utf-8 -t ascii//TRANSLIT "$p" | sponge "$p" | |
vim +"set nobomb | set fenc=utf8 | x" "$p" | |
done <files.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment