[SunHELP] Cleaning Script

Jeff Howie sunhelp at sunhelp.org
Sat Mar 10 12:49:17 CST 2001


Scott Forbes wrote:
> 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!

Something as simple as:

# find /export/home -type f \( -name \*.exe -o -name \*.mp3 -o -name \*.jpeg \)
|
> xargs rm -f

Would do the trick.

-- 
THKS :&) Jeff Howie



More information about the SunHELP mailing list