I have log files in a folder. These files after some size are creating a new file
old_name.log1 and writing to it.
Now there are many files and I can't clear them one by one. I want to delete
old_name.log2 etc and clear
The file_name can be anything. But the file ends with
.log and it's extended files ends with
.log2, etc. How to do it?