Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Nov 2019 00:44:23 -0400
From:      Kurt Hackenberg <kh@panix.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: grep for ascii nul
Message-ID:  <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com>
In-Reply-To: <20191101024817.GA60134@admin.sibptus.ru>
References:  <20191101024817.GA60134@admin.sibptus.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?558fd145-ad3e-90dc-5930-c01ca0c27d3c>