Removing trash files

From: Andreas Höschler (ahoesch@smartsoft.de)
Date: Sun Dec 12 2004 - 15:24:37 EST


Dear managers,

please excuse me for asking a probably trivial question, but I did not
get this figuered out so far. I have home directories in /home. Each
user has a dir .Trash in its home dir. I want to setup a cron job that
clears all .Trash dirs in all home dirs (rm -rf *)

I have alread setup the following for core files.

0 3 * * 1-5 find / -name core 2>/dev/null | xargs rm -f > /dev/null
2>&1

However the trash thing is more complicated since I am looking for dirs
not files. I tried stuff like

find /home -name "*./Trash*"

without much success.

Thnaks!

Regards,

   Andreas
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:51 EDT