Shame on you guys for doing his homework for him! The hint to use associative arrays was more than sufficient! ----- The Linux ThinkPad mailing list ----- The linux-thinkpad mailing list home page is at: http://www.bm-soft.com/~bm/tp_mailing.html