Re: [PATCH] wc: add -v option to print total counts every second.

2016-03-11 Thread Stephane Chazelas
2016-03-11 12:34:21 +, Pádraig Brady: > On 11/03/16 09:19, Sina Siadat wrote: > >* src/wc.c: add -v option and write live counts to stderr. > > I'd be inclined to call it --progress. Or --progress[=seconds] > However I'm also inclined to think this might be better > placed in a separate util

Re: [PATCH] wc: add -v option to print total counts every second.

2016-03-11 Thread Pádraig Brady
On 11/03/16 09:19, Sina Siadat wrote: * src/wc.c: add -v option and write live counts to stderr. I'd be inclined to call it --progress. However I'm also inclined to think this might be better placed in a separate utility. For example I see that pv can already count lines and bytes with -b and

[PATCH] wc: add -v option to print total counts every second.

2016-03-11 Thread Sina Siadat
* src/wc.c: add -v option and write live counts to stderr. --- src/wc.c | 133 ++- 1 file changed, 114 insertions(+), 19 deletions(-) diff --git a/src/wc.c b/src/wc.c index 94cbaff..52ca437 100644 --- a/src/wc.c +++ b/src/wc.c @@ -60,9 +

Feature request for wc: add -v option to print total counts every second.

2016-03-11 Thread Sina Siadat
Hi everyone, As my first contribution, I wrote a patch (submitted a few minutes ago) for wc to write the live total counts every second when processing large inputs that take a long time. It is inspired by -v in tcpdump when writing the packets to a file. The live counts are written in the sam

[PATCH] wc: add -v option to print total counts every second.

2016-03-11 Thread Sina Siadat
* src/wc.c: add -v option and write live counts to stderr. --- src/wc.c | 133 ++- 1 file changed, 114 insertions(+), 19 deletions(-) diff --git a/src/wc.c b/src/wc.c index 94cbaff..52ca437 100644 --- a/src/wc.c +++ b/src/wc.c @@ -60,9 +