[SunHELP] Cleaning Script

Ivan Kovalev sunhelp at sunhelp.org
Sat Mar 10 13:00:05 CST 2001


Look for find command with options. For example

find /dir1 /dir2 ( -name "*.exe" -o -name "*.mp3" ) -exec rm {} \;&

will run in background searching (in /dir1, /dir2 and below ) and
deleting all *.exe and *.mp3.

Scott Forbes wrote:
> 
> Hi All,
> 
> I'm a relatively new administrator that needs to clean out user's home
> dirs and group shares.  Anybody know where I can get an example script
> to clean out .exe, .mp3, graphics files, etc.  Scripting is my weak
> point I am working on.  Any help would be appreciated!
> 
> Scott
> scott at nebulaone.net
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list