From b50a151346c42816034b5c26266eb753b7dbe737 Mon Sep 17 00:00:00 2001 From: Bernhard Voelker Date: Tue, 22 Nov 2016 22:03:47 +0100 Subject: 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 --- NEWS | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 41c1e3c8c..edfbdfa1d 100644 --- a/NEWS +++ b/NEWS @@ -114,6 +114,8 @@ GNU coreutils NEWS -*- outline -*- ** New Features + comm now accepts the --total option to output a summary at the end. + date now accepts the --debug option, to annotate the parsed date string, display timezone information, and warn about potential misuse. -- cgit v1.2.3-54-g00ecf