Detect Russian characters with grep
grep, regex, shell, unicode, utf-8
Solution
there is no output because grep is looking for pattern `/yourletters/u`
try this:
echo "Ёё" | grep -Eo "[А-Яа-яЁё]*"
test here:
kent$ echo "Ёё" | grep -Eo "[А-Яа-яЁё]*"
Ёё
Problem
I'm trying to detect Russian characters with grep, but what I have at the moment does not appear to be doing anything: ``` echo "Ёё" | grep -Eo "/[А-Яа-яЁё]/u" ``` No output is returned. Is there anything I have to do to tell grep to return the output?