Reg: Search for a directory

Dear All,

I am new to Unix and i need a small Help from you Guys.....

The current structure of my system is as follows:
/Abc/xyz/cpd/std/re/doc

Each cpd directory has n number of std's. Each std has n number of re's.
My requirement is to write a UNIX script that would search whether doc directory is present under all re's directories.
If it is not, i need to write it into a temp file with the full path /Abc/xyz/cpd/std/re/doc.

Can anyone of you help me in writing a UNIX script for the above mentioned requirement ASAP.

Looking forward to your response.

Thank You.

Regards,
Rajani-kanth.