One of my favorite little tools that makes all these others better is pv -- PipeViewer.
Use it any place in a pipeline to see a progress meter on stderr. Very handy when grepping through a bunch of big log files looking for stuff. Here is a quick strawman example:
The second form will show the progress of the decompression process.
You can also adjust buffer size, set the length for the time estimate (otherwise we have to fstat the input), and display progress to stderr instead of stdout.
Not sure if you prefer binary installs or whether you compile your installs yourself... but I'm sure you could get this to compile on FreeBSD with a little work.
Comments
One of my favorite little tools that makes all these others better is pv -- PipeViewer.
Use it any place in a pipeline to see a progress meter on stderr. Very handy when grepping through a bunch of big log files looking for stuff. Here is a quick strawman example:
BSD has a progress meter utility. It's called progress(1).
The second form will show the progress of the decompression process.You can also adjust buffer size, set the length for the time estimate (otherwise we have to fstat the input), and display progress to stderr instead of stdout.
Which BSD has that? I don't seem to find it in my FreeBSD installs.
It's actually in FreeBSD's base, but it's part of the ftp(1) program.
Not sure if you prefer binary installs or whether you compile your installs yourself... but I'm sure you could get this to compile on FreeBSD with a little work.Shameless plug: here is a similar tool I wrote that prints not a progress bar but the contents flowing through the pipe, to help in debugging:
https://github.com/pjungwir/stutter