On Thu, Aug 23, 2007 at 10:25:12PM -0600, LuKreme wrote:
On 23-Aug-2007, at 15:53, Dallman Ross wrote:
Or if that's no good, you could use find.
rm -f dummy `find ~/mail/backup -maxdepth 1 -type f -name
'msg.*' -mtime +7`
find ~/mail/backup -maxdepth 1 -type f -name 'msg.*' -mtime +7 -
delete
(for any reasonably modern find)
Eh?
10:26am [/var/tmp/.dman] 552[0]> find . -mtime +30 -delete
find: -delete: unknown option
10:26am [/var/tmp/.dman] 553[1]> gfind . -mtime +30 -delete
gfind: invalid predicate `-delete'
I suppose you meant something like this:
[84.169.205.184 -> panix5] {dman} [0.44]
10:26am [/var/tmp/.dman] 554[1]> find . -mtime +30 -execdir rm '{}' \;
However, it is my understanding that that performs the exec on each
individual file and is therefore much less efficient than a command
executed on multiple file args at once. I could be mistaken in this
belief, but that's what I've heard.
dman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail