script to loop around folders

I have a folder called {homedata}
Within this folder there are 12 subfolders 200601.......200612
Within each subfolder there are 8 sets of files
Each filename commences with A B C D E F G or H,
so {filename}* can be used.

I am trying to write a script which will from the top level
go through each subfolder and manipulate the files by
a copying them to a different location{destinationdata/2006nn/filename} &
b renaming them, by appending _OK to their filename.

Can anybody help please ?

Many thanks

Something like that ?

homedata=/path/to/homedata
destinationdata=/path/to/destinationdata

cd ${homedata}
find . -type f | \
while read file
do
   destdir=${destinationdata}/`dirname ${file}`
   destfile=`basename ${file}`_OK
   [ ! -d ${destdir} ] && mkdir ${destdir}
   cp ${file} ${destdir}/${destfile}
done

Jean-Pierre.

:wink: many thanks aigles