Created
January 15, 2017 22:42
-
-
Save stefanjenkner/6bdd6713a6788b6199dcfeb234d4d6d4 to your computer and use it in GitHub Desktop.
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
function nfd(name) { | |
return gensub(/u\\314\\210/,"ü","g", | |
gensub(/o\\314\\210/,"ö","g", | |
gensub(/a\\314\\210/,"ä","g", | |
gensub(/U\\314\\210/,"Ü","g", | |
$name)))) | |
} | |
function nfc(name) { | |
return gensub(/u\\314\\210/,"ü","g", | |
gensub(/o\\314\\210/,"ö","g", | |
gensub(/a\\314\\210/,"ä","g", | |
gensub(/U\\314\\210/,"Ü","g", | |
$name)))) | |
} | |
/U\\314\\210/ { print "git", "mv", nfd($0), nfc($0) } | |
/u\\314\\210/ { print "git", "mv", nfd($0), nfc($0) } | |
/o\\314\\210/ { print "git", "mv", nfd($0), nfc($0) } | |
/a\\314\\210/ { print "git", "mv", nfd($0), nfc($0) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment