Buy DarkLaunch.com

Dark Launch

Find unicode characters in file

Find unicode or non-ascii characters using grep.

Bash
$ cat myfile.txt 
Lorem
ipsūm
dolor
sit
amet,
pōnderum
tritani
onstituto
in
duo.

Find line numbers

Bash
$ grep --line-number --perl-regexp '[^\x00-\x7F]+' myfile.txt 
2:ipsūm
6:pōnderum

Find characters

Bash
$ grep --line-number --only-matching --perl-regexp '[^\x00-\x7F]+' myfile.txt 
26

Use grep to find unicode characters

Bash
$ grep "$(printf %b '\u2013')" myfile.txt

Find unicode characters in vim

Code
/\%u2013