[GTALUG] Cool, but obscure unix tools :: Software architect Kristof Kovacs

Lennart Sorensen lsorense at csclub.uwaterloo.ca
Fri Mar 20 14:05:08 UTC 2015


On Fri, Mar 20, 2015 at 09:57:44AM -0400, Jamon Camisso wrote:
> I'll add 'pv' to the list. Great way to watch progress if you are
> using zcat/cat to pipe something somewhere.
> 
> For example, got a database dump? 'cat db.sql | pv | yoursqlengine'

If you do that, pv does NOT know how big the input is, and you are
wasting a pipe and a process.

'pv db.sql | yoursqlengine' on the other hand would work great.

> You get a nice progress bar and estimation of time to complete,
> autoscaling speed. Lots of other options too.

-- 
Len Sorensen


More information about the talk mailing list