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
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
* 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 +
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
* 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 +