Lately, after reading the Pragmatic Programmer, I have tried to follow the DRY principle whenever I can. One thing that I have to do every so often is clean up log files that are X many days old. Today when I had to do that again I found this bit of command-line goodness to solve [...]