Skip to main content
Question

zsh script to correct OneDrive forbidden characters

  • February 8, 2024
  • 0 replies
  • 4 views

atlauren
Forum|alt.badge.img+3

Greetings programs!

If your org adopts OneDrive for managing user Desktop/Documents, you may run into issues of filename compatibility. I’ve written a couple scripts which replace forbidden characters with underscores (_). This approach uses zsh file globbing and the zmv function. Also included are updating file dates to align with issues with the FAT file system and Windows Explorer.
https://github.com/atlauren/OneDriveKFM

Enjoy! PRs welcome.