Exactly that!
eg
Group: Printer HP1
Printer: HP1

current an if in statement does all the printer 1000's the scripts are huge. i want to get the groups id the printer group and assign a printer from a file listing all the printers.

I was thinking my do until could be done till the group contained the word printer and then strip "printer " search the txt file for hp1 and assign as default. This maybe a bit much for kixstart or may be easy. Dunno which yet.

eg. printer.txt
//server1/printer HP1