Search in text file containing cyrillic
by illuminaris - Friday November 17, 2023 at 11:49 AM
#1
Hi All

I am trying to figure out, how to search in a textfile containing cyrillic letters in Linux terminal, which uses an english char set.

Using
Cat BreachedDataUkraine53MCitizenshipDatabase.txt
Produces
1448700758      ������  6656    �����˲� 21      ����������      9      1 


using
LANG=ru_RU.CP1251 luit cat BreachedDataUkraine53MCitizenshipDatabase.txt
Produces
КАКОТКІН        207249  РОМАН

But if i try to grep something like
LANG=ru_RU.CP1251 luit cat BreachedDataUkraine53MCitizenshipDatabase.txt | grep МЕРКУЛЕНКО
It just prints the whole file

strings BreachedDataUkraine53MCitizenshipDatabase.txt | grep 1990
Only shows numbers

Any help are appreciated Smile
Reply




 Users browsing this thread: 1 Guest(s)