OS: MacOS Ventura 13.4.1
Terminal: zsh
I am trying to list all files/folders in a directory that do include german letters ä ü ö.
To test my regular expressions I created a test folder containing the following files:
./ü
./aüa
I tried a very simple find command:
find -E . -regex '.*ü'
Output: ./ü
Which is fine and correct.
Unfortunately If I try to find the ./aüa file using this regex:
find -E . -regex '.*aüa'
The output is empty, even though a file with the name ./aüa exists.
I tried to replace the "ü" in the regex with the unicode \u00FC like this:
find -E . -regex '.*a\u00FCa'
find -E . -regex '.*a\u{00FC}a'
find -E . -regex '.*a\x{00FC}a'
But nothing seems to work.
I did the same exercise with grep:
find . | grep -E ".*aüa"
Same result (not working)
Additional Info:
The german special letter ß does not seem to have this issue:
find -E . -regex '.*aßa'
If a file called ./aßa is present the above command prints it correctly to the terminal
Does anyone have a hint how to solve this issue? It drives me nuts