Created
October 9, 2017 01:32
-
-
Save paxperscientiam/d83cd7ebb5baa6e54263ca42bea97513 to your computer and use it in GitHub Desktop.
Find files with filenames containing characters incompatible with OneDrive.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
/usr/bin/find . \( -iname "*\:*" \ | |
-o -iname "*\?*" \ | |
-o -iname "*\**" \ | |
-o -iname "*\\\*" \ | |
-o -iname "*\<*" \ | |
-o -iname "*\>*" \ | |
-o -iname "*\|*" \ | |
-o -iname "*\"*" \) -print |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested on MacOS