Can I ask what your goal and operating system are? I'm wondering because there might be a unix command that'll do it without needing to write a script. (Heresy!)
Running on a Sun Solaris, not sure what version. Could I use the command 'Find' without trying to find a specific word and to find everything in every directory?