Skip to content

Instantly share code, notes, and snippets.

@mitselek
Created September 19, 2017 11:09
Show Gist options
  • Save mitselek/11c72c33f06a722b732987e86a8f363c to your computer and use it in GitHub Desktop.
Save mitselek/11c72c33f06a722b732987e86a8f363c to your computer and use it in GitHub Desktop.
get rid of MS-WORD accentures
find ./R6-nimed.txt -type f | xargs perl -CSD -i -pe 's/a\x{0308}/\x{00E4}/g'
find ./R6-nimed.txt -type f | xargs perl -CSD -i -pe 's/A\x{0308}/\x{00C4}/g'
find ./R6-nimed.txt -type f | xargs perl -CSD -i -pe 's/o\x{0308}/\x{00F6}/g'
find ./R6-nimed.txt -type f | xargs perl -CSD -i -pe 's/O\x{0308}/\x{00D6}/g'
find ./R6-nimed.txt -type f | xargs perl -CSD -i -pe 's/u\x{0308}/\x{00FC}/g'
find ./R6-nimed.txt -type f | xargs perl -CSD -i -pe 's/U\x{0308}/\x{00DC}/g'
find ./R6-nimed.txt -type f | xargs perl -CSD -i -pe 's/o\x{0303}/\x{00F5}/g'
find ./R6-nimed.txt -type f | xargs perl -CSD -i -pe 's/O\x{0303}/\x{00D5}/g'
find ./R6-nimed.txt -type f | xargs perl -CSD -i -pe 's/s\x{030C}/\x{0161}/g'
find ./R6-nimed.txt -type f | xargs perl -CSD -i -pe 's/S\x{030C}/\x{0160}/g'
find ./R6-nimed.txt -type f | xargs perl -CSD -i -pe 's/z\x{030C}/\x{017E}/g'
find ./R6-nimed.txt -type f | xargs perl -CSD -i -pe 's/Z\x{030C}/\x{017D}/g'
find ./R6-nimed.txt -type f | xargs perl -CSD -i -pe 's/c\x{030C}/\x{010D}/g'
find ./R6-nimed.txt -type f | xargs perl -CSD -i -pe 's/C\x{030C}/\x{010C}/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment