Thread View: ch.comp.os.linux
1 messages
1 total messages
Started by Dirk Schumacher
Fri, 11 Jun 1999 00:00
Problem mit find -follow
Author: Dirk Schumacher
Date: Fri, 11 Jun 1999 00:00
Date: Fri, 11 Jun 1999 00:00
36 lines
1292 bytes
1292 bytes
Hi,
habe ein Problem mit folgendem find-Aufruf
cd $STARTVERZ
for i in do
cd $i
find . -path "*/$X/*" -type f -name "*$DATEI*" -exec echo $VERZ{$1} \;
>> $TMP_FILE
cd ..
done
Dieser Aufruf sucht auf den HD`s 1-3 im Verz. $X alle Dateien, die
$DATEI heissen und schreibt in die Datei $TMP_FILE
den Wert von $VERZ$DATEI.
Wenn ich den Befehl ueber 3 HW�s laufen lasse, dauert es ca. 3 min.
Starte ich den Aufruf wie folgt mit der Option "-follow", damit er mir
die Links verfolgt, dauert es ca. 1 STUNDE !!!
cd $STARTVERZ
find . -path "*/$X/*" -follow -type f -name "*$DATEI*" -exec echo
$VERZ{$1} \; >> $TMP_FILE
Im Verz. $STARTVERZ sind 3 Links auf die HD�s 1-3
Theor. sollte die gleiche Anzahl Dateien durchsucht werden.
Hat jemand eine Idee ??
Dirk
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads