Re: Kleines Scripting-Problem
On Thu, 29 Nov 2007 the mental interface of
Matthias Haegele told:
> Hallo Ihr!
>
> Ich überlege gerade wie ich am elegantesten aus einem Verzeichnis
> Dateien lösche die z.B. älter als einen Monat sind.
find /das/relevante/verzeichnis -ctime +31 -type f -exec rm -f {} \;
oder
find /das/relevante/verzeichnis -mtime +31 -type f -exec rm -f {} \;
Den^ Unterschied zwischen mtime und ctime findest Du in
$ man find
Elimar
--
Numeric stability is probably not all that
important when you're guessing;-)
Reply to: