in reply to percentage while loop
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.
|
|---|