vielen dank fuer den hinweis mit den
man-pages. allerdings hilft mir find nur dann weiter wenn es um die daten einer
datei geht, das was ich benötige bezieht sich allerdings auf den
inhalt.
----- Original Message -----
Sent: Sunday, March 19, 2006 11:35
AM
Subject: Re: BASH - Datei suche
Robert Huckstorf schrieb:
Moin
moin ...
also ich will eine beliebige datei nach einem Datum
durchsuchen, das sich ständig ändert. Dieses Datum will ich dann mit date
vergleichen und dann Aktionen einleiten. Dies alles möglichst mit der BASH.
Hat jemand von euch schon ähnliches realisiert ?
Mit Gruß
Robert
Hallo Robert,
sieh dir mal das
find-Kommando an (man find), hier kannst du die Optionen "ctime" und
"exec" benutzen.
Gruß ; Michael
-ctime
number matches if the file was
creation during the 24-hour period
beginning number days
ago.
-exec command
; takes all arguments between
-exec and the semicolon as a command
line, replacing any argument
which is exactly {} (that is, the two
brace characters) with the
current path name. It then executes the
resulting command line, treating
a return status of zero from this command as
a successful match, non-zero as
failure. You must delimit the
terminal semicolon with white
space.
|