I've got an app written in perl/tk that uses DB:ODBC (running on win2k) to talk to the mothership. The db used to be mssql7, but has been moved to mysql. Everything works fine since the move, except ...
I have a directory full of about 5,000 text files (logs). I want to truncate each of the files, and keep only the last few hundred entries (file range in size from 500k to 5M). What would be the ...