[SunHELP] Cleaning Script

sunhelp at sunhelp.org sunhelp at sunhelp.org
Sat Mar 10 13:11:57 CST 2001


--openmail-part-386ebd41-00000001
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
	;Creation-Date="Sat, 10 Mar 2001 13:11:57 -0600"
Content-Transfer-Encoding: 7bit

find /home/ | egrep -i \(\\.jpg\|\\.exe\|\\.gif\|\\.mp3\) | xargs rm -rf
or a more 'user friendly' version. read, don't delete directories or 
files like my_thesis.mp3.doc and prompt
find /home/ -type f | egrep -i 
\(\\.jpg\$\|\\.exe\$\|\\.gif\$\|\\.mp3\$\) | xargs rm -i
-Blake

-----Original Message-----
From: scott [mailto:scott at nebulaone.net]
Sent: Saturday, March 10, 2001 12:24 PM
To: sunhelp
Cc: scott
Subject: [SunHELP] Cleaning Script


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

--openmail-part-386ebd41-00000001--




More information about the SunHELP mailing list