>----------------------snip here---------------------------
>----------------------snip here---------------------------
*sigh* Maybe I should leave this stuff to the pros...I put the horse before
the cart, here is the corrected version:
----------------------snip here---------------------------
#ASCII Player Files Cleanup
#Change these varables to suit your situation.
MD=/home/zizazat/circle/aoa/lib
DAYS=60
DN="pfiles plralias plrobjs plrvars"
#Remove entries from the plr_index file
cd $MD/pfiles
oldnames=`find . -type f -mtime +$DAYS|cut -f3 -d/`
for x in $oldnames
do
grep -wv $x plr_index > tmp;mv tmp plr_index
done
#Clean up files older than $DAYS days.
for d in $DN
do
find $MD/$d -type f -mtime +$DAYS -exec rm {} \;
done
----------------------snip here---------------------------
--Ziz
_________________________________________________________________
MSN 8 with e-mail virus protection service: 3 months FREE*.
http://join.msn.com/?page=features/virus&xAPID=42&PS=47575&PI=7324&DI=7474&SU=
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_eliminateviruses_3mf
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
| Newbie List: http://groups.yahoo.com/group/circle-newbies/ |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT