diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2016-11-22 22:03:47 +0100 |
---|---|---|
committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2016-11-22 22:03:47 +0100 |
commit | b50a151346c42816034b5c26266eb753b7dbe737 (patch) | |
tree | 0ee2b87aec984af4593d9a31301828c24f110dfb /tests/misc/mktemp.pl | |
parent | 812877bfcb34edbff1ba554555bd2ddb613a22cc (diff) | |
download | coreutils-b50a151346c42816034b5c26266eb753b7dbe737.tar.xz |
comm: add --total option
* src/comm.c (total_option): Add bool variable for the new option.
(TOTAL_OPTION): Add enum value.
(long_options): Add array element for the new option.
(usage): Document the new option here.
(compare_files): Count the lines in total[3], and output the summary at
the end.
(main): Accept the new option.
* doc/coreutils.texi (comm invocation): Document it.
* tests/misc/comm.pl: Test it. While at it, improve the test data
to have 1 unique line in the first file, 2 unique lines in the second
file, and 3 common lines.
* NEWS (New Features): Mention the new option.
Fixes http://bugs.gnu.org/24929
Diffstat (limited to 'tests/misc/mktemp.pl')
0 files changed, 0 insertions, 0 deletions