Firstly, please use [code][/code] tags around your code.
As for the code itself, it makes little to no sense
1. You have commented out the start of the while loop, but left in the 'done' that is trying to read from the file
2. You read a value into 'name' variable and echo it straight away ... for what reason?
3. What purpose do the 2 for loops hold? Ignoring the 'done' trying to read from a file, these loops will ask for and print the 'name' variable 154 times ... is this the idea?
4. Lastly, what is a 'LUT'? (pardon my ignorance)