Created
August 9, 2020 09:38
-
-
Save chapmanjacobd/8bea1c3c26e0085a7487a137771cc80c to your computer and use it in GitHub Desktop.
This file contains 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
for file in (fd -tf) | |
set newFile (echo $file | unidecode) | |
if [ $file != $newFile ] | |
/usr/bin/mkdir -p (dirname "$newFile") | |
mv -v "$file" "$newFile" | |
else | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment