Skip to main content
3 of 3
edited tags
bmike
  • 241.3k
  • 80
  • 433
  • 958

Find and rename illegal characters with mac terminal

Since mac doesn't support certain characters like ?!# ... on server directories anymore, I need to find and rename those. There are tons of "Icon?"-files in font folders and I want to rename it to "Icon_"

I tried to do it with terminal since other apps like "a better finder rename" have difficulties to find certain characters like "?" in filenames like my example "Icon?".

My first try was the find command like this:

find . -exec rename -s "Icon?" "Icon_" * {} +

It says "Unknown option: F"