public interface UniqOptions extends OptionSet<UniqOption>
uniq
command.
It is recommended to use Uniq.Options
to specify a valid
combination of options.
The options for the uniq command are:
-c | --count | Precedes each output line with a count of the number of times the line occurred in the input. | |||
-d | --duplicatedOnly | Suppresses the writing of lines that are not repeated in the input. | |||
-u | --uniqueOnly | Suppresses the writing of lines that are repeated in the input. | |||
-g | --global | Suppresses repeated lines globally, that is, if lines are non-adjacent. This option guarantees unique output lines even if the input lines are not sorted. |
This interface serves as an alias for the extended interface to simplify the command signature methods by avoiding generic parameters.
Modifier and Type | Interface and Description |
---|---|
static class |
UniqOptions.Default
Default implementation for a modifiable option set.
|
Modifier and Type | Field and Description |
---|---|
static ValueConverter<UniqOptions> |
CONVERTER
Value converter for
UniqOptions based on an OptionSetConverters.OptionSetConverter . |
static UniqOptions |
EMPTY
Constant for an empty option set.
|
asSet, isSet, iterator, optionType, size, useAcronymFor
forEach, spliterator
static final UniqOptions EMPTY
static final ValueConverter<UniqOptions> CONVERTER
UniqOptions
based on an OptionSetConverters.OptionSetConverter
.Copyright © 2024. All rights reserved.