Why doesn't this work? (echo is not the real command)
$ find . -type d -exec echo {} \; find: missing argument to `-exec'
I managed to do that anyway like this:
$ for f in `find . -type d`; do echo $f; done