title: Using find with -exec {}, is there a way to count the total?
body: <p>I am using a command similar to this one:</p>
  
  <pre><code>find . -name "*.php" -exec chmod 755 {} \;
  </code></pre>
  
  <p>Although, I am not using chmod, I am using a different command which I will not list here. This command is working fine. However, there are thousands of files and directories to be operated on, and this operation takes some time. I am wondering if there is a way to display some sort of total when the operation is complete? Perhaps a count of modified files?</p>
  
  <p>The only thing I can think of is simply to do something like:</p>
  
  <pre><code>find . -name "*.php" -exec chmod 755; echo "+"; {} \;
  </code></pre>
  
  <p>Will that work? At least we can see that something is happening... Anyone have  a better suggestion?</p>