I have a script that does things to large files > 1Gb and I want to be
able to show the percentage through the current file.
I know exactly how I will get the percentage, but I want to know how to
display it in the terminal.
What I would like is the name of the current file, then on the next
line, “currentbytes/totalbytes [xx%]” and I want it to update the
characters in place without writing hundreds of lines to the terminal.
I think I want to be able to position the cursor back to the beginning
of the current line but I have no idea how to do this in ruby.
Grateful for any ideas