I have the Unicode character ᚠ, represented by its Unicode code point 16A0, in a text file (the text file is encoded(?) as utf-8).
When I do grep '\u16A0' test.txt
I get no result. How do I grep that character?
grepregular expressionunicode
I have the Unicode character ᚠ, represented by its Unicode code point 16A0, in a text file (the text file is encoded(?) as utf-8).
When I do grep '\u16A0' test.txt
I get no result. How do I grep that character?
Best Answer
You can use ANSI-C quoting, to replace backslash-escaped characters as specified by the ANSI C standard.
For some more complex examples, you might refer to this related question and its answers.