linux shell script for log rotate