From owner-freebsd-questions@freebsd.org Fri Nov 1 02:48:26 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CA74217F813 for ; Fri, 1 Nov 2019 02:48:26 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47467s1kkNz49fW for ; Fri, 1 Nov 2019 02:48:24 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=Message-ID:Subject:To:From:Date:In-Reply-To; bh=H4mkMWOD+Y6wLzkUZiH8Zyonb3q1QcbOJ2h1QOxeOAY=; b=fwos0dhbtrb+teMkAGpiFw6R84 sJloNJmOf5PMwWDInrWip2z2mwWXQpVYeTSo06xWNiaLS4IOne+tYEPL9vH+F2TVDsJavccrAAjun 0TRZSIIa+FuQcb94BqUFBSkTCUJOc2hKyC6hJHIQN5DORC5j1tOVWekh2K5ppb3B4Ywc=; Received: from vas by admin.sibptus.ru with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iQMz3-000Fgd-P6 for freebsd-questions@freebsd.org; Fri, 01 Nov 2019 09:48:17 +0700 Date: Fri, 1 Nov 2019 09:48:17 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: grep for ascii nul Message-ID: <20191101024817.GA60134@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 47467s1kkNz49fW X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=fwos0dhb; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-8.37 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-3.27)[ip: (-9.84), ipnet: 2001:19f0:5000::/38(-4.92), asn: 20473(-1.52), country: US(-0.05)]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 02:48:26 -0000 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJdu5zxAAoJEA2k8lmbXsY0YXUH/i8sLMi6Z8aRRdZxknk4JFRi qOG+wSso9kopmLAZKVZCh8l7S7YVtZYkOsfDlunYTg5Bm95iR74ww2YrEPh/PMVf 3xRHCu+KEusPRvyj+aH8b6EtboP2moJPB47jBrsFzTIfxxjq+Z+nErSAt2EBSrDd 6XTduCLjEiAB6eKbPognnohhlaM9G2zPGGGEMHP+S6HLO8H8UY1FmvA7qzIwnU/P 3f8cTxBtrPvBIDTPuJVeeN1e+TXugiwj74vw0r/e6nx7PQiNnOO2JCKrY/EBJ172 mV0MCDsbSefK5jLoSltURZenXeCaTv/WYe7qDQQ92mj0qzhjPqaYXrf21Mljx4E= =cDyI -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--