grep for ascii nul

thor thor at
Fri Nov 1 03:07:35 UTC 2019

There is NO such thing as filenames containing 0x00 inside the filename. 
UNIX filenames are strings in C meaning and may contain any 8-bit values 
except "/" which delimits the subdirectory names and 0x00 which marks 
the end of filename string.

At least it was so when I first met Unix, and I hope Bill Gates never 
influenced Unix since this time.

On 11/01/19 10:48, Victor Sudakov wrote:
> 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.

More information about the freebsd-questions mailing list