Created
March 6, 2018 08:40
-
-
Save ascendbruce/2f95e88588b88f1b8bc558f74f951e51 to your computer and use it in GitHub Desktop.
Find filenames contain illegal windows characters on Mac/Linux -- regex pattern match windows reserved characters
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
# Source: https://stackoverflow.com/questions/19008614/find-files-with-illegal-windows-characters-in-the-name-on-linux | |
# reserved characters for filename on windows: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx | |
find . -name '*[<>:/\\|?*]*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment