ack how to replace grep based on perl?
You will definitely want to check out ack .
It supports Unicode encodings and mostly grep, but better.
try the corresponding unicode with grep
If you are on Linux, Unix, etc., you may want to change your LANG encoding to fit your documents.
Check your language first. Here is what my default is installed on my MacBook Pro:
$ locale LANG="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_CTYPE="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_ALL=
let's say under bash:
$ LANG="foo" grep 'gotta be found now' file.name
something a little more persistent (be careful with this):
$ export LANG="foo" $ grep 'bar' mitz.vah
popcnt
source share