Using find with -exec {}, is there a way to count the total?
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.