bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC] wc: add new option, --progress


From: Pádraig Brady
Subject: Re: [RFC] wc: add new option, --progress
Date: Mon, 3 Nov 2008 14:20:46 +0000
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Bo Borgerson wrote:
> Hi,
> 
> I've recently found myself wishing for an option in 'wc' that shows
> progress during an invocation.  I modified my local copy with the
> changes in the attached patch to accept a '--progress' option.
> 
> This patch is also available at git://repo.or.cz/coreutils/bo.git
> 
> An example of behavior can be observed with the attached 'slowrite' program:
> 
> $ ./slowrite 100000 | src/wc --progress
>  100000  200000  800000
> 
> $ src/wc --progress <(./slowrite 100000 3) <(./slowrite 1000000 4)
>  100000  200000  800000 /dev/fd/63
> 1000000 2000000 8000000 /dev/fd/62
> 1100000 2200000 8800000 total

Thanks Bo,

I'm not sure this is generally that useful.
It reminds me of the more general pv tool that
I have found useful in the past:
http://www.ivarch.com/programs/quickref/pv.shtml

cheers,
Pádraig.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]