title: Get "unknown predicate `-delete" Error in script
body: <p>The following script I have saved in an <em>.sh</em> file on the server that clears a few directories of old files and directories. </p>
  
  <pre><code>#!/bin/bash
  
  find /PATH_TO_DIRECTORY_1 -mtime +5 -type f -delete
  
  find /PATH_TO_DIRECTORY_2 -mtime +5 -type f -delete
  
  find /PATH_TO_DIRECTORY_3 -mtime +5 -type d -exec rm -rv {} +
  </code></pre>
  
  <p>This is the error message when I run the script:</p>
  
  <blockquote>
    <p>'ind: unknown predicate `-delete</p>
  </blockquote>
  
  <p>In addition to </p>
  
  <blockquote>
    <p>$'\r': command not found</p>
  </blockquote>
  
  <p>I don't think the latter disturbs the code but the first one surely does.</p>
  
  <p>Mind that I edit my code on Windows 10 and my server is an Ubuntu 64x run through Amazon Web Services (EC2).</p>