Skip to main content

I need an Automator script which finds all files with illegal Windows characters like <>:/\\|?* and replaces thisthese characters with an underscore and the. The rest of the filename keeps beenshould remain unchanged.

As an alternativalternative, I would use ana terminal script. I know how to find them with find . -name "*[<>:/\\|?*]*", but I don't know how to change the names probablyproperly.

How do I do this?

I need an Automator script which finds all files with illegal Windows characters like <>:/\\|?* and replaces this characters with an underscore and the rest of the filename keeps been unchanged.

As an alternativ, I would use an terminal script. I know how to find them with find . -name "*[<>:/\\|?*]*", but I don't know how to change the names probably.

How do I do this?

I need an Automator script which finds all files with illegal Windows characters like <>:/\\|?* and replaces these characters with an underscore. The rest of the filename should remain unchanged.

As an alternative, I would use a terminal script. I know how to find them with find . -name "*[<>:/\\|?*]*", but I don't know how to change the names properly.

How do I do this?

Source Link
Sebastian Semmler
  • 1.3k
  • 4
  • 26
  • 46

Find all illegal Windows characters in a folder and subfolder

I need an Automator script which finds all files with illegal Windows characters like <>:/\\|?* and replaces this characters with an underscore and the rest of the filename keeps been unchanged.

As an alternativ, I would use an terminal script. I know how to find them with find . -name "*[<>:/\\|?*]*", but I don't know how to change the names probably.

How do I do this?