uniq: add the --group option
commit374f569579fe4e319d592f4d77ae1ede5566eed6
authorAssaf Gordon <assafgordon@gmail.com>
Wed, 20 Feb 2013 18:31:22 +0000 (20 13:31 -0500)
committerPádraig Brady <P@draigBrady.com>
Thu, 28 Feb 2013 18:20:30 +0000 (28 18:20 +0000)
treeb7493c64cf19988dc84aaf1899b1e9c3718896bc
parent8b6d3c5700526f962b12cd5901b55961c5e18186
uniq: add the --group option

* src/uniq.c (usage): Summarize the new option,
and adjust the --all-repeated option to be more consistent.
(check_file): Merge the --group functionality into
the core loop for the default uniq operation since
it's very similar and can output lines immediately upon reading.
(main): Handle the new --group option and make it
mutually exclusive with other selection options.
* tests/misc/uniq.pl: Add tests.
* NEWS: Mention the new feature.
* doc/coreutils.texi (uniq invocation): Describe --group.
NEWS
doc/coreutils.texi
src/uniq.c
tests/misc/uniq.pl