Related to another question, in order to fuzzily detect binary files, is there a way to detect  bytes in sed?
Is there a way to detect null bytes (, NUL, \0) in sed?
bash;sed
Example:Prove I'm sending a NUL byte, followed by a newline:$ echo -e \\0 | hexdump -C00000000  00 0a                                             |..|00000002Now I change the NUL byte to an ! exclamation mark:$ echo -e \\0 | sed 's/\x00/!/' | hexdump -C00000000  21 0a                                             |!.|So the trick is using \x00 as NUL-byte.