Manipulating a list into a two-dimensional array

view story

http://www.unix.com – hi, total newbie to shell scripting and wondering if some of you guru's can give me a hand on a problem I'm trying to solve. The tmplsnr.a file contains Code: LSNR_51526 db1 db2 LSNR_51527 db3 db4 db5 Summary - depending on which db is set, the script will start the relevant listener (LSNR_). e.g if db5 is set then the script will start the LSNR_51527 listener. I was thinking the best way maybe to put this information into an array and then search the array. I want to read the above file into a two dimensional array and the array to looks like this so that I can search the corre (HowTos)