title: Keep log file of shell script execution until past few days
body: <p>Am appending the standard output and error of the shell script execution on a unix bok like shown below</p>
  
  <pre><code>/home/mydir/shellScript.sh &gt;&gt; /home/mydir/shellScript.log 2&gt;&amp;1
  </code></pre>
  
  <p>Now am wondering a way to keep logs going back as much as say 30 days else the log file size will keep on increasing.
  Would appreciate if anyone can provide recommendations around the same. </p>