I am trying to make my bash (or tcl) script updates a line with three columns. After going back to the begin of the line I don't know how to move forward skipping some characters. I want to update specific information, not the whole line.
My script executes several instances of another script in parallel, which sends one among three types of messages (P1, P3 and P7). When a message is sent a column related to that type of message needs to be updated.
I want to print something like this with echo:
The number of the sent messages are:
P1: 2 P3: 1 P7: 5
The first line is static and the second is dynamic (the numbers in the second line need to be constantly updated) I can use '\b' or '\r' to move backward in the line without overwriting the characters. But how can I move forward in the line without overwriting the characters previously there? Is there some kind of "reverse" "\b"?