AlbertAguirre
Programmer
I have a shell script that processes information in a for loop.
The loop has an echo statement that displays each record. The problem is that the output is displayed when the for loop and script end.
I would like the output of each line to display to the screen during the loop.
How do I flush the output and have it echo the data to the screen on the fly?
The loop has an echo statement that displays each record. The problem is that the output is displayed when the for loop and script end.
I would like the output of each line to display to the screen during the loop.
How do I flush the output and have it echo the data to the screen on the fly?