Detecting Russian characters with grep

I'm trying to detect Russian characters using grep, but what I have at the moment seems to be doing nothing:

 echo "" | grep -Eo "/[--]/u"

      

The exit is not returned. Is there anything I need to do to get grep to return the result?

+3


source to share


1 answer


no way out because grep is looking for a pattern /yourletters/u

try this:

  echo "" | grep -Eo "[--]*"

      



check here:

kent$  echo "" | grep -Eo "[--]*"


      

+5


source







All Articles