How can we write a C shell script to make Dirs, and subdirs, and help file in each subdirs?

someone said have to use FOREACH loop, but I don't really understand the function and instruction of Foreach.

any example will be helpful.