title: How to delete old log files using shell script
body: <p>my log directory containing following files </p>
  
  <p>access.log          </p>
  
  <p>defaultAuditrecorder20110901.log (this is 31st jun generated log file)</p>
  
  <p>defaultAuditrecorder20110901.log (this is 1 st aug generated log file)</p>
  
  <p>defaultAuditrecorder20110902.log (this is 2 nd aug generated log file)</p>
  
  <p>defaultAuditrecorder.log         (this is currentdey running log file)</p>
  
  <p>mng1.log001</p>
  
  <p>mng1.log002</p>
  
  <p>mng1.log003  .............. so on......</p>
  
  <p>my requirement is using shell script i need to <strong>only delete defaultauditrecord log files except current and previous day</strong>.</p>