Task12: Write a shell script to automate the process of rotating log files and compressing old files to save disk space.