Am Samstag, 8. Juli 2006 10:27 schrieb Al Bogner:
Es scheint nun zu klappen. Ich musser aber noch intensiver testen.
Nein, es passt doch nicht. cat /usr/local/bin/testscript2.sh #!/bin/bash echo $1 cat /usr/local/bin/try_test.sh #!/bin/bash dir="/tmp/xargstest" dir1="$dir/ordner1" dir2="$dir/ordner2" dir3="$dir/ordner3" mkdir -p "$dir3" mkdir -p "$dir1" mkdir -p "$dir2" echo "ohne sort" find "$dir" -mindepth 1 -maxdepth 1 -user `whoami` -type d echo "mit sort" find "$dir" -mindepth 1 -maxdepth 1 -user `whoami` -type d | sort echo "mit sort und xargs" find "$dir" -mindepth 1 -maxdepth 1 -user `whoami` -type d | sort | xargs -r /usr/local/bin/testscript2.sh try_test.sh-Ausgabe: ohne sort /tmp/xargstest/ordner3 /tmp/xargstest/ordner1 /tmp/xargstest/ordner2 mit sort /tmp/xargstest/ordner1 /tmp/xargstest/ordner2 /tmp/xargstest/ordner3 mit sort und xargs /tmp/xargstest/ordner1 Es wird also nur der _1._ Ordner abgearbeitet. Al -- Um die Liste abzubestellen, schicken Sie eine Mail an: suse-linux-unsubscribe@suse.com Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: suse-linux-help@suse.com