I am using a command similar to this one:
find . -name \"*.php\" -exec chmod 755 {} \\;
Although, I am not using chmod, I am using a differ
This works:
$ find . -name "*.php" -exec chmod 755 {} \; -exec /bin/echo {} \; | wc -l
You have to include a second -exec /bin/echo for this to work. If the find command has no output, then wc has no input to count lines for.
-exec /bin/echo
find
wc