Hi Christian! On Mi, 15 Apr 2009, Christian Paul wrote:
Hi Christian
On Wednesday 15 April 2009 20:55:14 Christian Brabandt wrote:
Hi Torsten!
On Mi, 15 Apr 2009, Torsten Foertsch wrote:
Vergiß -exec! Das könntest Du zwar statt -print0 benutzen, es ist aber weniger effektiv. Mit -exec würdest Du für jedes File einen grep-Prozess starten.
man find | less -p "-exec.*\+"
ergibt bei mir <standard input>:92: cannot use newline as a starting delimiter
(GNU bash, version 3.2.39(1)-release (i586-suse-linux-gnu)
??
,----[ man find | grep -A 8 -m 1 "-exec.*+" ]- | -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. `---- Sprich find verhält sich bei -exec + ähnlich wie xargs und es wird nicht mehr für jeden Fund ein Prozes gestartet. Mit freundlichen Grüßen Christian -- hundred-and-one symptoms of being an internet addict: 182. You may not know what is happening in the world, but you know every bit of net-gossip there is. -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org