Assemble the following parts:
You will have to write some code.
In reply to Re: can perl do this? by Corion in thread monitor text files by grashoper