[CentOS] how to separate individual logs?

Fri Dec 3 10:50:29 UTC 2010
John Doe <jdmls at yahoo.com>

From: Les Mikesell <lesmikesell at gmail.com>

> If the first line of the input file  used doesn't match the pattern you'd 
> probably get an error in the redirect  since $LOGFILE would not be set.

If the data file does not respect the order section+body... he could just add 
a LOGFILE="garbage.txt" at the begining of the script...

JD