Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Crufted with perl modules?
Date: Wed, 17 Nov 2010 14:10:14
Message-Id: CAA773A3-8338-47C9-B9F4-FAEA8D9A3CC1@stellar.eclipse.co.uk
In Reply to: Re: [gentoo-user] Crufted with perl modules? by "Sebastian Beßler"
1 On 17/11/2010, at 1:13pm, Sebastian Beßler wrote:
2 >>>> This is why find -exec + exists since 20 years.
3 >>>
4 >>> Could you enlighten me about this?
5 >>> I look into man find but it says nothing about -exec + or a + operator
6 >>> at all. Also adding + to the command doesn't work either.
7 >>
8 >> Which man page are you looking at? It's in my find man page at least.
9 >
10 > man find
11 >
12 > Aktionen
13 > -exec Kommando;
14 > führt das Kommando aus; die Aktion ist wahr, wenn das Kommando einen Status von Null liefert; alle auf den Kommandonamen folgenden Argumente bis zu einem Semikolon ; werden als Kommandozeilenargumente für das Kommando interpretiert; das Semikolon kann nicht weggelassen werden, und es muss durch mindestens ein Whitespace von der letzten Option getrennt werden; die Konstruktion {} wird durch den Pfadnamen der Datei ersetzt; die Klammern und das Semikolon müssen in der Kommandozeile für find quotiert werden, damit sie nicht von der Shell bearbeitet werden
15 >
16 > There is only one -exec option explained, no + to see.
17 > The only option with a + in my manpage is -perm +Modus
18 >
19 > No I have not tried the english version, I thought that a option that exists for 20 years should be in translated manpages too.
20
21 -exec command {} +
22 This variant of the -exec action runs the specified command on
23 the selected files, but the command line is built by appending
24 each selected file name at the end; the total number of invoca‐
25 tions of the command will be much less than the number of
26 matched files. The command line is built in much the same way
27 that xargs builds its command lines. Only one instance of `{}'
28 is allowed within the command. The command is executed in the
29 starting directory.
30
31 Stroller.