1

I need a good tool, preferably a purpose-built, not a Swiss Army knife, and definitely free.

The tool will only allow a maximum number of files - or maybe files of a certain wildcard match - in a folder and delete all but the max (n) newest files by date updated.

I have a lot of log files accumulating that are pretty huge so I only want to keep a couple around at a time.

1
  • Sounds like a problem needing to be solved at the source; most logging frameworks have a built-in option for rotating log files. Of course, if you can't change/configure that, you'll need another solution ...
    – Glorfindel
    Sep 24, 2022 at 20:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.