| with find -exec

can we use |(pipe operator) with find -exec.....?

or can pipe the output of find command to another command...?

if not, why...?

pls explain

Your question is not very clear.

Yes, this can be done

this as well is possible

is worth mention that if you use something like this
find / -name * --exec date | less
you will see the date printed for each file find founds (wich are all in /)

the pipe will get the output of the command you execute, not the list of files

I want to compress very much directories to the responding file name.

find 2009* -type d -exec tar c --remove-files {} |lzma -z9 > {}.tar.lzma \;

error
lzma ;: doesn't exist or is not a regular file
find: missing argument to '-exec'

thanx anyone in advance

Jeroen