Use -s to determine the size of the file. Sum line lengths into a progress counter as the lines are processed. For each progress update divide the progress counter by the file size, multiply to 100, and there's your percentage.
In reply to Re: percentage while loop
by GrandFather
in thread percentage while loop
by marto9
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |