How to find all files recursively from the specified directory with at least one of any Cyrillic characters in the name. Team
find ../folder/ -regex '[A-я]+' finds nothing. Where am I wrong?
How to find all files recursively from the specified directory with at least one of any Cyrillic characters in the name. Team
find ../folder/ -regex '[A-я]+' finds nothing. Where am I wrong?
according to the documentation:
-regex pattern
This is a match on the whole path, not a search.
i.e., the template must match the whole path (and name) of the file, and not just the required part (as, for example, when using the grep program):
.*[набор].* The set of letters from А to Я and from A to я should look different:
[А-Яа-я] $ find путь -regex '.*[А-Яа-я].*' find . -regex '.*[А-Яа-я].*' find . -regex '.*[А-Яа-я].*' , result: ./abcdЁ123 ./abcdё123 . - aleksandr barakin pmThe team should look at least that way.
find ../folder/ -regex '.*[A-Яа-я].*' А-я - by, and where is Ё ? - Qwertiy ♦echo -e '1\nё\nЁ' | grep '[а-Я]' echo -e '1\nё\nЁ' | grep '[а-Я]' on a more or less current version of glibc will return two lines, with the letter ё , and with the letter Ё with the environment variable LC_COLLATE with the value of язык_страна.UTF-8 . - aleksandr barakinSource: https://ru.stackoverflow.com/questions/543717/
All Articles