There are several ways to do it
$ find client/coffee/ -name '*.coffee' -exec docco {} +
$ find client/coffee/ -name '*.coffee' | xargs docco
However, note that the latter way does not work if there is space in file name, unless you use find -print0
with combination of xargs -0
.
Additionally, if you are using bash, you can use **/*.coffee
with setting shopt -s globstar