Unzip all the files with subdirectories present and append a part of string from the main .zip files

Hi frnds,

My requirement is I have a zip file with name say eg: test_ABC_UH_ccde2a_awdeaea_20150422.zip
within that there are subdirectories on each directory we again have .zip files and in that we have files like mama20150422.gz and so on.

Iam in need of a bash script so that it unzips all the files present within the subdirectories and those files naming should be like ccde2a_mama20150422.gz

I am beginner in Linux, so please could you help.
Thanks in advance,
Regards,
Ravi

---------- Post updated at 02:37 PM ---------- Previous update was at 12:34 PM ----------

I have a script which does unzipping, but I want to append part of main zip file name to those unzipped files, Please someone could modify this.

ls *.zip | while read i; do IFS = "\n" echo "Starting on $i" >> $filename; unzip -d "$i-extracted" "$i"; echo -en "Finished $i..\n"; done