Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save habernal/b1c4f916f557a958f58d704338f2b56c to your computer and use it in GitHub Desktop.
Save habernal/b1c4f916f557a958f58d704338f2b56c to your computer and use it in GitHub Desktop.
Replace characters with diacritics and remove non-ascii characters on Linux
$ cat file.txt | iconv -f utf8 -t ascii//TRANSLIT | perl -p -e 's/[[:^ascii:]]//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment