Need help please with creating new Script to remove old .log files
Posted: 2018/10/18 13:36:22
Hello,
Can you please assist me on how to wrote this scripts to remover 2017 and older log files and just to keep 2018?
I have been doing this manually using .txt file
ls command will show:
-rw-rw-r-- 1 198661 Oct 16 09:01 cm-docsis-testsuite-IPv6.tcl-1539693695.log
in text file I modify entry to:
rm cm-docsis-testsuite-OSS.tcl-1501030190.log
but there are many files like that goes back to 2010
Thank for your help
Can you please assist me on how to wrote this scripts to remover 2017 and older log files and just to keep 2018?
I have been doing this manually using .txt file
ls command will show:
-rw-rw-r-- 1 198661 Oct 16 09:01 cm-docsis-testsuite-IPv6.tcl-1539693695.log
in text file I modify entry to:
rm cm-docsis-testsuite-OSS.tcl-1501030190.log
but there are many files like that goes back to 2010
Thank for your help