[K12OSN] shell script to remove contents of several files

Barry Cisna cisna-barry at wc235.k12.il.us
Fri May 19 11:31:56 UTC 2006


Hello All,

Due to the fact ,that I am not smart enough, would someone be able to
give an example of a shell script that would remove the contents of each
users, email folder,( but of course leave the user's folder on the
system). I'm wanting to "clean out" everyone's email at the end of the
school year.
In other words something like delete contents
of /var/mail/allusers<folder contents>.
I'm not sure of correct syntax of "rm" or "shred"

Thanks again,

Barry Cisna




More information about the K12OSN mailing list