Let me explain my problem, I have a file in the following format
9602622 - User ID
01 -2 - Question number & Grade
02 - 3
03 - 7
04 - 12
05 - 9
06 - 0
9601664 - User ID
01 -2
02 - 3
03 - 7
04 - 12
05 - 9
06 - 0
I need to change the file so it looks like this
9601664 54 - User ID and their percentage
How do I do it, I believe I need to use
awk however I am stuggling any help would be much appriciated