title: Multiple find -exec commands in one bash script doesn't work?
body: <p>I have a bash script that needs to be run by cron. It works when the script only contains 1 command line, but fails when it's more than 1 line.</p>
  
  <pre><code>#!/bin/sh
  find /path/to/file1 -name 'abc_*' -type f -mtime +7 -exec rm {} \;
  find /path/to/file2 -name 'def*.gz' -type f -mtime +7 -exec rm {} \;
  </code></pre>
  
  <p>I received <strong>find: missing argument to `-exec'</strong> error message. I need to keep only the last 7 days of several different files in several different directories.</p>
  
  <p>Why did I get that error message when all the commands have already seem to be true?</p>