script to clean log file