qwrtyuiop666yhh
Are you allowed to use awk in this bash script?
awk has a very handy split function which puts each element of a string into an array:
split(string, m, " : ")
m is the name of the array.
Sounds like you'd like to figure out the rest so I'll just give this as a little clue