Search recursive

before posting, I have tried to find my answer elsewhere. no luck.

I need to find a file buried in a folder somewhere.
Master folder has 10 sub folders.
each sub folder has folders too.
I found this but it does nothing
I am on Mac and use Applescript.

do shell script  "find /volumes/AudioNAS/AH2/ -type f -print0  xargs -0 grep -l "All in"

If you know the file name, include it in the find command like -name filename .

You're also missing a pipe symbol to separate elements of your pipeline and you have mismatched quotes. If you would show us the diagnostics being printed instead of just saying it doesn't work, you would be much more likely to get answers to your problems much quicker. Maybe something like this will work (but it is untested):

do shell script  "find /volumes/AudioNAS/AH2/ -type f -print0 | xargs -0 grep -l \"All in\""

or, as RudiC suggested, if you know the name of the file you're trying to find:

do shell script  "find /volumes/AudioNAS/AH2/ -name 'filename' -type f -print0 | xargs -0 grep -l 'All in' "

How are you invoking Applescript?
Why not just use a shell script (or just run the command:

find /volumes/AudioNAS/AH2/ -name 'filename' -type f -print0 | xargs -0 grep -l 'All in'

from a terminal window)?