My output prints approximately 1 line per second to the terminal, maybe 100-200 lines in total.
I've tried to capture the output using
tee, but it prints all the lines at the end of the process, not in realtime.
I also tried using the
script command, but the output file had some weird characters such as
^M printed along with the results, which is no good.
How can I print in realtime while capturing!?