Need help in creating a shell script to automate svnstats process

Hi,

I am trying to create a shell script to automate the following process of getting svn stats:-

Step1:- cd to checkout location.
Note that the checked code have multiple modules in respective folders [ like folder1 hv one module,folder2 have second module]

Step2:- Execute this command inside each module:-
svn log -v --xml > folder1/logfile_folder1.log
svn log -v --xml > folder2/logfile_folder2.log

Note that the log created should be as per folder/module name.

Step3:- Execute this:-

java -jar statsvn.jar <logfile> <checked-out-module>

Note:- This output should be of individual module & should be created in respective module's folder.

Can anyone please throw some light in this script's creation.

Thx