[GTALUG] Cool, but obscure unix tools :: Software architect Kristof Kovacs
Mauro Souza
thoriumbr at gmail.com
Fri Mar 20 14:33:46 UTC 2015
If you know the size of the uncompressed file, you can tell it to pv and
the progress will be accurate. There is a parameter for that.
On Mar 20, 2015 3:10 PM, "Jamon Camisso" <jamon.camisso at utoronto.ca> wrote:
> On 20/03/15 10:05 AM, Lennart Sorensen wrote:
>
>> 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.
>>
>
> Ah good point - the progress bar isn't accurate the way that I use it with
> zcat. I don't suppose there's a way to make that work with a stream is
> there?
>
> Cheers, Jamon
> ---
> Talk Mailing List
> talk at gtalug.org
> http://gtalug.org/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/talk/attachments/20150320/0a613c21/attachment.html>
More information about the talk
mailing list