title: Search for a cronjob with crontab -l
body: <p>I am trying to find a cronjob that was created to ensure that the script doesn't duplicate the same exact cronjob.</p>
  
  <p>I've been trying to use something along these lines but haven't had much luck:</p>
  
  <pre><code>if ! crontab -l | xargs grep -l '/var/www/arix/update.php'; then
    echo "Cronjob already exists"
  else
    echo "Cronjob doesn't exist"
  fi
  </code></pre>