Thank you for your messages.

It is possible I did not understand correctly your messages, because grep finds hex sequences with the “-Pa” options at least.

Examples—“input.txt” contains, from the file system, for example “\xFF\xFE\x0D\x00\x0A\x00\x74\x00\x65\x00\x73\x00\x74\x00\x0D\x00\x0A\x00\x74\x00\x65\x00\x73\x00\x74\x00\x5F\x00\x74\x00\x77\x00\x6F\x00\x0D\x00\x0A\x00”:
grep -Pa '\x00' input.txt
→ found
grep -Pza '\x0A' input.txt
→ found
grep -Pa '\x0A\x00' input.txt
grep -Pza '\x0A\x00' input.txt
→ not found for the both

But is it at least possible to find “\x0A\x00” with grep?



Reply via email to