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.
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.