3 BASEPATH
="\/mnt\/netapp\/users"
4 IMGPATH
="\/mnt\/images"
6 find $BASEBATH -ctime 14 -name index.xml.deleted |
while read i
; do
7 FILEDOMAIN
=`echo $i | sed "s/$BASEPATH\/\(.*\)\/\(.*\)\/.*/\1_\2/g"`
9 cat $i |
grep "source file" |
sed "s/.*file='$IMGPATH\/$FILEDOMAIN_\(.*\)'.*/\1/g" |
while read j
; do
10 rm $IMGPATH/$FILEDOMAIN_$j
12 grep -v $FILEDOMAIN /mnt
/netapp
/ipservices
/dv28.conf
> /tmp
/dv28.conf
13 mv /tmp
/dv28.conf
/mnt
/netapp
/ipservices
/dv28.conf