I have some XML files with invalid characters in them, since there are a lot of them I'd like to use grep to search for them, but am not getting the correct results.
Opening the file in VIM shows something similar to this:
<email><202a>someone@address.com</email>
I'd like to search for the <202a>
I've tried the following:
grep -P "<202a>" file
grep -P "\<202a\>" file
grep -P "\x202a" file
grep -P "\x202A" file
Note that the <202a> is not a string...when printed to the console (i.e. if I just grep for email) it shows as