Date: Fri, 1 Nov 2019 21:59:00 +0700 From: Victor Sudakov <vas@sibptus.ru> To: freebsd-questions@freebsd.org Subject: Re: grep for ascii nul Message-ID: <20191101145900.GA74710@admin.sibptus.ru> In-Reply-To: <CADqw_gKrKQWCNvoP3GjzzD7cXMn4YzBao_v8_OpY9MEumRTSjw@mail.gmail.com> References: <20191101024817.GA60134@admin.sibptus.ru> <2c08387c-425b-060d-4f9b-3443a3f6a18f@irk.ru> <20191101092716.GA67658@admin.sibptus.ru> <CADqw_gKrKQWCNvoP3GjzzD7cXMn4YzBao_v8_OpY9MEumRTSjw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Michael Schuster wrote: > https://stackoverflow.com/questions/4180081/binary-grep-on-linux/4180531#= 4180531 >=20 > Does that help? Actually, Kurt's small program has been much more helpful. I'm in fact surprised that the FreeBSD base system does not contain a binary-capable grep. I've found out that pcregrep from devel/pcre can catch it with this syntax:= =20 pcregrep '\x0' test.txt but it does not output just the filename, even with -l --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJdvEg0AAoJEA2k8lmbXsY0D1oH/i31pNE6mXbzXr4qUEaGG5vF G2NZZEU93MrMN7AhBbuZ/P9tzLqLBIHzCZBpHXv3OUkgM8UuVhDScOzESXj1O7z4 0xSo5Wh4KRGJAu81QGDW4n3l01KYWWKMmmBgOzv2chAyTI8RjpQ+kzBabxl8Nati CijTaKK8BgNGLVdp0Dk5xO3nBuTX3IVdc7O5J6BXJr59wze+9JecY8FznFNiuTlI glxNfRLTVs1n6BxXP/tOAeiiHcNNn5h/OxQacU15diN0Ql8aZNQS7qVctnjJGfqS x4p3DAPNHhEXb3LIx0Ar3lsxFwbACmTiWFfY6GmVY07ZXJj1Sfyp+giAoZHFW9o= =12Np -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191101145900.GA74710>