grep for ascii nul

Victor Sudakov vas at
Fri Nov 1 02:48:26 UTC 2019

Dear Colleagues,

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.

NB I don't need to delete the nul character with sed or tr, just need to
find files containing it.

Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49 at fidonet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <>

More information about the freebsd-questions mailing list