domenicodl
Programmer
Hello,
I'd like to refresh the stdoutput. Suppose that I have the following program
BEGIN{
print "execution";
for(i = 0; i<4; i++)
print i;
}
the output is
execution
0
1
2
3
rather I would like to refresh the stdouput as the for loop runs, thus just one line of the stdoutput updates its value without having a long sequence of print.
It is like:
execution
0 then this becomes 1, 2....
Thank you in advance.
I checked "fflush" and system("") but none of them helped me, maybe I used them mistakenly.
I'd like to refresh the stdoutput. Suppose that I have the following program
BEGIN{
print "execution";
for(i = 0; i<4; i++)
print i;
}
the output is
execution
0
1
2
3
rather I would like to refresh the stdouput as the for loop runs, thus just one line of the stdoutput updates its value without having a long sequence of print.
It is like:
execution
0 then this becomes 1, 2....
Thank you in advance.
I checked "fflush" and system("") but none of them helped me, maybe I used them mistakenly.