Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] -print0 but with 'locate'
Date: Sat, 03 Sep 2016 11:12:51
Message-Id: 20160903121234.08cf6b75@digimed.co.uk
In Reply to: [gentoo-user] [OT] -print0 but with 'locate' by Meino.Cramer@gmx.de
1 On Sat, 3 Sep 2016 11:52:46 +0200, Meino.Cramer@×××.de wrote:
2
3 > I want to 'locate' a bunch of files and feed the output into
4 > '| xargs md5sum'.
5 > Unfortunately some of them are infected with the "file name"-virus
6 > (space in the filename).
7 > With find there is the -print0 option which corresponds to '-0' of
8 > the xargs options. As of my knowledge, locate does not have such
9 > a thing.
10
11 it does
12
13 locate -0 blah | xargs md5sum -0
14
15
16 --
17 Neil Bothwick
18
19 I heard someone tried the monkeys-on-typewriters bit trying for the plays
20 of W. Shakespeare but all they got was the collected works of Francis
21 Bacon

Replies

Subject Author
Re: [gentoo-user] [OT] -print0 but with 'locate' Meino.Cramer@×××.de