Skip to content

Instantly share code, notes, and snippets.

@chapmanjacobd
Created August 9, 2020 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chapmanjacobd/8bea1c3c26e0085a7487a137771cc80c to your computer and use it in GitHub Desktop.
Save chapmanjacobd/8bea1c3c26e0085a7487a137771cc80c to your computer and use it in GitHub Desktop.
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