If you already know shell you could try converting pseudo code like:
"find /home/directory and type directory and maximum depth is 1 and while read userhome; do
find userhome and type directory and caseinsensitive name [regex matches spam] and while read foldername; do
remove folder; create folder and chmod && chown it to the userid. (done; done)"
or
"find /home/directory and type directory and maximum depth is 1 and while read userhome; do
find userhome and type directory and caseinsensitive name [regex matches spam] and while read foldername; do
find foldername and type file and while read file; xargs remove file. (done; done)"
else post whatever you tried to script and we could comment on that.
Last edited by unSpawn; 07-02-2008 at 07:36 AM.
|