Here is what I prepared and where I got stuck:
find / \! -name "*[:alnum:]*" -type f -ls > ~/Desktop/files_not-allowed-char.txt
I actually want to list all files which include one of these characters:
\ / : * ? " < > |
The other way around: I want to list all files which have other characters in the name than:
[A-Z][a-z][0-9]äöüÄÖÜß_-.()#[]
or in other "words":
[:alnum:] and "äöüÄÖÜß_-.()#[]"
I hope I could clarify my wishes. I am entering unknown territory...
Thanks in advance!
Background info:
I want to change from AFP to SMB but have to make sure that I rename all invalid file and folder names (e.g. invalid_Directory_Name./
).