About Me

My photo
Working as Technical Lead in CollabNET software private limited.

Friday, 13 February 2009

Script to delete folder in a loop

#!/bin/sh
i=0
while [ $i -le 40 ]
do
folder="psr-pub-$i"
#chown apache:apache $folder -R
rm -rf $folder
i=`expr $i + 1`
done

1 comment: