Sorry about the confusion.. here is the details. My script generates data every 20 minutes.
File #1
USER maria
RUN 5
WAIT 6
DONE 7
QUEUE short
TOTAL 10
USER bob
RUN 7
WAIT 3
DONE 2
QUEUE long
TOTAL 8
After 20 minutes
File #2
USER maria
RUN 2
WAIT 4
DONE 3
QUEUE short
TOTAL 12
USER bob
RUN 4
WAIT 5
DONE 5
QUEUE long
TOTAL 13
At the end of 2 hours the concatenated file would look like this
USER maria, maria, maria, maria, maria, maria
RUN 5, 2, 5, 6, 7, 9
WAIT 6, 2, 4, 6, 7, 8
DONE 7, 2, 4, 5, 7, 8
QUEUE short, short, short, short, short, short
TOTAL 10, 12, 13, 14, 15, 16
USER bob, bob, bob, bob, bob, bob
RUN 7, 4, 5, 6, 8, 9, 10
WAIT 3, 4, 6, 8, 2, 4
DONE 2, 3, 4, 2, 4, 2
QUEUE long, long, long, long, long, long
TOTAL 8, 10, 12, 13, 14, 16
Hope this illustration makes it clearer..
thank you