hhhhhh.. no this isn't homework I'm 24 years old
I have been studying it for myself.
This drill taken from a training book that I found, but I have no idea how to do it.
Well, working with the stuff from the book, i dont think that this is the first thing to do for you.
You might want to search the book index for 'IFS' and 'do/while loop' to read files.
If there's a chapter about AWK, then that might be interesting as well.
In my consideration, that (awk) would be advanced, while the 'IFS while loop' would be basic/intermediate (for you).