最佳答案
I want to implement a progress bar showing elapsed seconds in bash. For this, I need to erase the last line shown on the screen (command "clear" erases all the screen, but I need to erase only the line of the progress bar and replace it with the new information).
Final result should look like:
$ Elapsed time 5 seconds
Then after 10 seconds i want to replace this sentence (in the same position in the screen) by:
$ Elapsed time 15 seconds