[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kleines Scripting-Problem



Matthias Haegele:
> 
> Erstmal vielen Dank an alle!. Das mit rm funktioniert so weit, wenn ich 
> aber die Dateien z.B. einfach in ein anderes Verzeichnis schieben will 
> funktioniert das nicht, weiss jemand da zufaellig die Syntax oder geht das 
> einfach nicht?
> 
> find -mtime +31 -type f -exec mv /tmp/verzeichnis {} \;

Du führst für jede Datei $f aus;

mv /tmp/verzeichnis $f

, verschiebst also das Verzeichnis "in die Datei". Das ist sicher nicht,
was Du willst.

J.
-- 
Watching television is more hip than actually speaking to anyone.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>

Attachment: signature.asc
Description: Digital signature


Reply to: