On Tue, 2006-10-31 at 03:05 -0800, Benjamin Franz wrote: > Assuming that what you *MEANT* for your output example was [...]] > the following Perl script should do it. If I ever happen to get motivated I might try and do an awk script for this. It's likely to be much simpler/smaller than the perl version (though not necessarily any better, OC). -- Boring Home Page - http://www.webtrek.com/joe See my blog, sumo game ranks and other interesting junk