title: Bash-Performing the same command on several directories
body: <p>I want to create a script that will delete any files older than 7 days on a specified list of directories, but wondering what would be the best way to go about it...</p>
  
  <p>I want to perform the following command on all directories specified:</p>
  
  <pre><code>find DIRECTORY_PATH -type f -mtime +7 -exec rm {} \;
  </code></pre>
  
  <p>Maybe an array holding a list of directories, and loop through each element in the array performing the find command on that? </p>
  
  <p>Any help/advice would be appreciated.</p>