From owner-freebsd-questions@freebsd.org Fri Nov 1 09:59:58 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 8E4F01AF74F for ; Fri, 1 Nov 2019 09:59:58 +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 474Hjn70Lcz41rt for ; Fri, 1 Nov 2019 09:59:57 +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=In-Reply-To:Message-ID:Subject:To:From:Date; bh=cpLOVnjOhJTOPAKN1+9MKQN1qj1WQ05PE1EACBOdshc=; b=KsRMJt98j8/2w9cxqnYZclNu9f UcRKg9DehVvgTtjOq2sgxrD2i4k++04YB37WGgOcgJcjvZMTgHB0NCh56lAwayH2n3LPvBeAaZcxX cEKSIi2LH5rpE4LhNnyqsu5DBodSNGExcrL6ySp+dVs0th56pZnG1HrD6k8r6P7bX5tI=; Received: from vas by admin.sibptus.ru with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iQTim-000HpC-N9 for freebsd-questions@freebsd.org; Fri, 01 Nov 2019 16:59:56 +0700 Date: Fri, 1 Nov 2019 16:59:56 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: grep for ascii nul Message-ID: <20191101095956.GA68342@admin.sibptus.ru> References: <20191101024817.GA60134@admin.sibptus.ru> <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> <61f96c80-7965-9c80-30dc-b153e418b668@panix.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline In-Reply-To: <61f96c80-7965-9c80-30dc-b153e418b668@panix.com> 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: 474Hjn70Lcz41rt X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=KsRMJt98; 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:c]; 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.55), 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 09:59:58 -0000 --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Kurt Hackenberg wrote: >=20 > > You could use the attached program, which I wrote some time ago for thi= s=20 > > purpose. >=20 > Huh. The attachment didn't come through. Does this list forbid attachment= s? >=20 > Anyway, here's the program inline. It's C. It worked, thank you very much! At least it has found (via "find | xargs -n1") a bunch of files which I kind of expected to have ascii nul in them. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJdvAIcAAoJEA2k8lmbXsY0VekIAIgWqiWx+XBggInzozq/ggOE mRxP/0bAO1v3Xtijjqraaz9QR2XjqoBUbnTE2L9wI+du/W0+LIUactSN8f/bELOK nn3N9D4PXg8YlLCkwR9gugQkcc92A/oLlRYyFPkClK+cRNV7TOoTQA1m89vo/WTd qpnS+MltGmELrZLgLjFymGB67WLo+f1ELwFo9SAGBBcku5HAhuE4dIiP0diDU8Sk Dsv6DxaulE1d9L+v1WOQzi/oI6YGeKnLpjqZeal1EaOoUdvom+kbb+ZiYwJcGLss FJXP2e/p6c8NFniyIZ6FRQUvqI2Eo8GKHNrLKeXA7XEEsA8xM31VnwxvZBq+NMA= =G7cV -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn--