Well, I\'m a linux newbie, and I\'m having an issue with a simple bash script.
I\'ve got a program that adds to a log file while it\'s running. Over time that log fi
Well, it's not a direct answer to your question, but there's a tool in GNU/Linux whose job is to rotate log files on regular basis, keeping old ones zipped up to a certain limit. It's logrotate
logrotate