qq starts recording the macro in the q register.
0 moves the cursor to the beginning of the line.
x deletes the # character.
j moves the cursor to the next line.
q stops recording the macro.
6@q replays the macro 6 times.
