Do you have a list of the various products or does the program have to find out all by itself? e.g. the name of the product is the common part between the first word each line within a product section: redball greenball -> ball
But what will you do with: hugespoon and littlespoon -> espoon?
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
Comment on Re: Extract first word from certain lines in a file