grep for ascii nul

Kurt Hackenberg kh at panix.com
Fri Nov 1 04:44:31 UTC 2019


On 2019-10-31 22:48, Victor Sudakov wrote:

> How can I print the names of files containing ascii nul (\x0)? The
> FreeBSD "grep -l" does not seem to be able to do it.

Yeah, no. Probably grep takes that NUL as the end of the C string that 
is that command-line argument.

You could use the attached program, which I wrote some time ago for this 
purpose.


More information about the freebsd-questions mailing list