title: sh script to rotate logs periodically
body: <p>I would like to create a sh script which can run the following command via cron periodically</p>
  
  <p>00 01 * * * /usr/local/sbin/rotatenginxlogs.sh > dev/null 2>&amp;1</p>
  
  <p>how should i write the sh script?</p>