title: Bash script to recursively add a file to multiple directories
body: <p>I have a bunch of directory's in /home/servers2 (like a few thousand) and in each directory in server2 there is a directory called plugins Ex. /home/servers2/MyServer/plugins</p>
  
  <p>In each one right now there is a file called AutoStopFinal.jar, I need to remove that, and then copy over AutoStop1.3.001 to the plugins directory from /home/servers/template/plugins.
  I wanted to non destuctivly test it so I tried this:</p>
  
  <pre><code>echo " Script to copy a plugin to all server plugin directories"
  
  for i in /home/servers2/*/plugins; do
      echo rm -f $i/AutoStopFinal.jar
      echo cp -f /home/servers/template/plugins/AutoStop1.3.001.jar "$i"
  done
  
  echo " completed script ..."
  </code></pre>
  
  <p>But only got Script to copy a plugin to all server plugin directories. I Controled C'd out of it after about 5 minutes. But I got no echos from inside the loop, any advice?</p>