As posted here and here, pipeviewer is a tool that shows content progress based on it's size. As seen there, the proposal of their questions is to get a progress bar of a process running without data volume.
I was wondering if is it possible to show progress of a loop with pipeviewer, considering that I'm reading it from a file, and I know it's size.
I've trying something like
while IFS= read -r line;
do
<code>
done < file.txt | pv
And this definitelly doesn't work, since pv shows only an empty progress bar.
Any ideas?
Thank you in advance!