1

To delete log files content older than 30 days and append the lastest date log file date

view story
linux-howto

http://www.unix.com – To delete log files content older than 30 days and append the lastest date log file date in the respective logs I want to write a shell script that deletes all log files content older than 30 days and append the lastest log file date in the respective logs This is my script Code: cd /hyperion/logs/essbase/app Check to find all the Essbase Application logs Code: find . -name *.log -exec ls {} \; Deleting the logs file more than 30 days Code: find . -name *.log -mtime +30 -type f -exec rm {} \; But the Application logs file content which are older than 30 days not getting (HowTos)