coreutils
[Top][All Lists]
Advanced

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

Suggestion for WC (wordcount)


From: Benson Muite
Subject: Suggestion for WC (wordcount)
Date: Thu, 10 Dec 2020 10:07:08 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0

Hi,

The wordcount utility is very helpful. However, it has been suggested it could be more user friendly. Typical output is below:

$ wc src/wc.c
  926  3291 27625 src/wc.c

The units of measurement are not specified nor are the quantities, so the significance of the quantities is not clear. It is perhaps not appropriate to change the default output since many existing programs might rely on this, but might it be possible to add a separate flag to give information about the measured quantities, for example:

src/wc -t src/wc.c
Lines Words Bytes  Filename
  926  3291 27625 src/wc.c

A prototype implementation for this is available at:
https://github.com/bkmgit/coreutils/blob/master/src/wc.c

other suggestions for improvements are also welcome.




reply via email to

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