Skip to content

Instantly share code, notes, and snippets.

Created Feb 1, 2012
What would you like to do?
Finding all files with non-ascii characters in names and replacing it by underscores
find . | perl -ane '{ if(m/[[:^ascii:]]/) { print } }' | rename -n 's/[^[:ascii:]]/_/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment