in reply to How can I group lines in a file?

Close, but you want HASHES OF ARRAYS, as zwon has illustrated.