Sounds like the perfect task for IBM's Object Rexx language which they offer for free 
on Linux

http://www-306.ibm.com/software/awdtools/obj-rexx/

/* Sample code to search and destory! */
searchlist='.mp3 .wav .avi'
do s=1 to searchlist~words()
   rc=SysFileTree('/homes/*'searchlist~word(s), filelist., 'FOS')
   if filelist.0>0 then do f=1 to filelist.0
      rc=SysFileDelete(filelist.f)
   end
end

Of course you could add logging, etc... as fancy as you want to get.

--
Michael Lueck
Lueck Data Systems

Remove the upper case letters NOSPAM to contact me directly.

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to