[Samba] file "time-to-live"

Mike Eggleston mikeegg1 at mac.com
Tue Jun 29 09:33:31 MDT 2010


On Tue, 29 Jun 2010, Benedict White might have said:

> You could write a bash script like this:
> 
> #!/bin/bash
> find /some/temp/dir/ -name "*" -atime 1 -delete

Duh, you can also do it with mtime and not a time

find $dir -mtime 1 -exec /bin/rm -f {} \;

You don't have to give a name if you want all files.

Mike


More information about the samba mailing list