From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AF2C6138330 for ; Sat, 3 Sep 2016 11:12:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 71543E0B2B; Sat, 3 Sep 2016 11:12:43 +0000 (UTC) Received: from smarthost01b.mail.zen.net.uk (smarthost01b.mail.zen.net.uk [212.23.1.3]) by pigeon.gentoo.org (Postfix) with ESMTP id 55D08E0B1F for ; Sat, 3 Sep 2016 11:12:42 +0000 (UTC) Received: from [81.108.251.46] (helo=mail.digimed.co.uk) by smarthost01b.mail.zen.net.uk with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1bg8sL-0000zr-5O for gentoo-user@lists.gentoo.org; Sat, 03 Sep 2016 11:12:41 +0000 Received: from digimed.co.uk (fenchurch.digimed.co.uk [192.168.1.6]) by mail.digimed.co.uk (Postfix) with ESMTPA id B083553B035 for ; Sat, 3 Sep 2016 12:12:39 +0100 (BST) Date: Sat, 3 Sep 2016 12:12:34 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [OT] -print0 but with 'locate' Message-ID: <20160903121234.08cf6b75@digimed.co.uk> In-Reply-To: <20160903095246.GA4641@solfire> References: <20160903095246.GA4641@solfire> Organization: Digital Media Production X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/_UixkEJMkNFF=BPy3ghz9+u"; protocol="application/pgp-signature" X-Originating-smarthost01b-IP: [81.108.251.46] Feedback-ID: 81.108.251.46 X-Archives-Salt: ebe3f156-8cca-4ac0-9394-59a56ce09de1 X-Archives-Hash: 3ecf96b4a11765d67a57d44d7c2d4add --Sig_/_UixkEJMkNFF=BPy3ghz9+u Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 3 Sep 2016 11:52:46 +0200, Meino.Cramer@gmx.de wrote: > I want to 'locate' a bunch of files and feed the output into=20 > '| xargs md5sum'. =20 > Unfortunately some of them are infected with the "file name"-virus > (space in the filename). > With find there is the -print0 option which corresponds to '-0' of > the xargs options. As of my knowledge, locate does not have such=20 > a thing. it does locate -0 blah | xargs md5sum -0 --=20 Neil Bothwick I heard someone tried the monkeys-on-typewriters bit trying for the plays of W. Shakespeare but all they got was the collected works of Francis Bacon --Sig_/_UixkEJMkNFF=BPy3ghz9+u Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAlfKsCIACgkQum4al0N1GQOfYwCghGcFqIOvwIJtZZFA6rBOIvtw KoMAnAnnxGZqdDhh4Ux1VRpkbH7EgBKw =CxtI -----END PGP SIGNATURE----- --Sig_/_UixkEJMkNFF=BPy3ghz9+u--