Hi Philipp! On Mi, 22 Feb 2012, Philipp Thomas wrote:
On Tue, 21 Feb 2012 22:22:08 +0100, Christian Brabandt
wrote: 2) find . -type f -exec grep "foobar" '{}' +
Das startet grep für jede gefundene Datei.
Nein: ,----[ man find ]- | -exec command {} + | This variant of the -exec action runs the specified command on | the selected files, but the command line is built by appending | each selected file name at the end; the total number of invoca‐ | tions of the command will be much less than the number of | matched files. The command line is built in much the same way | that xargs builds its command lines. Only one instance of `{}' | is allowed within the command. The command is executed in the | starting directory. `----
Und wieso sollte das ressourcenschonender sein?
Erklärt es sich jetzt_
Eben nicht. Mit freundlichen Grüßen Christian -- Die genialen Menschen aller Länder sind sehr wohl imstande, einander zu verstehen und zu achten. -- Germaine de Staël (Über Deutschland) -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um den Listen Administrator zu erreichen, schicken Sie eine Mail an: opensuse-de+owner@opensuse.org