S
S
Sergey Goryachev2016-08-20 14:28:34
linux
Sergey Goryachev, 2016-08-20 14:28:34

How to search for text in a bunch of files?

To search for text, I always used the command.
[category]# grep -r "Текст, который ищем" .
But something is not looking for Russian words from me.
Is it tech and should it be or do I have a jamb somewhere?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
viiy, 2016-08-20
@webirus

Try composing a less strict regexp
AND enable perl mode

cat > ./russian.txt
вася
петя
маша
даша

grep -P "вася|маша" ./russian.txt 
вася
маша

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question