Well I was thinking about writing a script but coding makes my head hurt and then I thought "what else makes my head hurt?" Why, microsoft office of course!
I found I can actually use mail merge in wordto do this
As long as all the hosts and groups are defined beforehand it seems ok, I'll have to do it in a few batches, one for each group.
Oh and be sure to save it as plain text as well