Skip to content

Instantly share code, notes, and snippets.

Created August 3, 2014 05:10
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 anonymous/6761e2142c214fb6ef4a to your computer and use it in GitHub Desktop.
Save anonymous/6761e2142c214fb6ef4a to your computer and use it in GitHub Desktop.
find /home/DOMAIN/www/cms/wp-content/themes -type f > utf8list
iconv utf8list > asciilist
i=1
for file in $(cat utf8list); do
newname=$(head -$i asciilist | tail -1 | tr -d '\n')
echo "mv $file $newname"
let i++
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment