find all man dirs and build windex... HELP!

Hi all,

My goal is to find all my 'man' dirs in my sw structure and from that create a windex db. I get many new software dirs every week soo I need to rebuild the windex db very often. I've started with this:

OS: Solaris 8

#!/bin/bash

find /sw/tools -type d -name 'man*' -print

/sw/tools/matlab/7.0.1/man
/sw/tools/gnat/5.01a/man
/sw/tools/gnu/man
etc...

How can I make this list suitible for a varible like MANPATH like:

/sw/tools/matlab/7.0.1/man:/sw/tools/gnat/5.01a/man:/sw/tools/gnu/man...

If I get a complete MANPATH list I will be able to build a windex db with catman. Will the awk or nawk command be able to do what I want, and if soo, how?

Please help me... :confused:

find blah | paste -s -d:

Thanks, but I didn't get any output from this.

I used the below from another Moderator:
find......| nawk -v ORS=':' '1' or
find......| tr '\n' ':'

/Tony

actually it should be:
find blah | paste -s -d: -