Page MenuHomeFreeBSD

Support --all-repeats in uniq(1) for compatibility with gnu coreutils.
Needs ReviewPublic

Authored by ian on Wed, Nov 6, 6:00 PM.

Details

Reviewers
kevans
Group Reviewers
docs
manpages
Summary

This adds a new -D/--all-repeats option to uniq(1), which outputs each copy of any repeated lines (as opposed to a single copy of a repeated line). You can specify a separator option to output a blank line before or after each group of repeated lines. This adds compatibility with the GNU coreutils version of uniq(1).

This change also re-groups the -c, -d, -D, -u options in the usage display and man page to indicate that they are mutally exclusive of each other. This matches the posix/opengroup definition of uniq(1) command line args. Note that this change does NOT actually enforce the mutual exclusion in the code, for now, it simply documents that the arguments should be considered exclusive with each other.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 27376

Event Timeline

ian created this revision.Wed, Nov 6, 6:00 PM
crees accepted this revision as: docs.Wed, Nov 6, 8:37 PM
crees added a subscriber: crees.

Manpage and usage changes look fine.