I have hundreds of files with invalid symbols for OneDrive (
\/:*?"|
) and I want to automatically rename them on my Mac so they can save up to the cloud.
- OneDrive for macOS does not seem to have the auto-renaming option, it just throws an error and bypasses those files for upload.
I looked at the command zmv
, but so far, I have no success. I managed to rename all spaces to _
with zmv '(*)' '${1/ /_}'
, but that's actually not helping. Most of these special character don't work with zmv, even if I escape them with \
.
I am on macOS Ventura 13.4 and OneDrive 23.114.0530.0001. I backed up E-Mails from some years and their header is automatically used as file name. My problem files contain lots of these characters like:
This is an "E-Mail".eml
Is this an E-Mail?.eml
This is also an *E-Mail*.eml
Does anyone have an idea how I can get rid of these characters without having to rename these ~650 files manually?
Asked by gernophil
(349 rep)
Jun 21, 2023, 04:11 PM
Last activity: Jul 6, 2023, 09:34 AM
Last activity: Jul 6, 2023, 09:34 AM