echo "Processing xyz..."
[script does some stuff]
Then actually append something like an "ok" at the end of the existing output line so it ultimately looks like this when it's processing is done:
Code: Select all
Processing xyz... ok
As opposed to a newline being generated like this:
Code: Select all
Processing xyz...
ok
I don't want to just build the whole string and then display it when the processing is done because I want to have visual feedback on when the processing has started, how long it's taking for each item, which item it might hang on, etc.
Any suggestions appreciated - hope this was a clear as mud!