bash stderr redirect question
I am writing a bash script that will execute a program. The program displays feedback about its progress through stderr. I can capture this output into a variable, but what I would like to do is have the stderr from that program be both displayed normally in the console (updated in real time), and also captured into a variable so that I can grep it later.
The other related question I have is how do programs overwrite a line in the console, like for progress bars?
Thanks.
|