public final class UniqOptionSets extends Object
uniq
command with the
the following options:
-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 class serves as entry point to every possible set of uniq
options
defined as an enum constant. With this explicit expansion of all possible
option combinations, options can be passed to the command in a very compact
form, such as:
uniq(Uniq.Options.c, ...); uniq(Uniq.Options.c.d, ...); ... uniq(Uniq.Options.c.d.u.g, ...);
Modifier and Type | Field and Description |
---|---|
UniqOptionSet_cg |
c
Option
"-c" : Precedes each output line with a count of the number of times the
line occurred in the input. |
UniqOptionSet_cg |
count
Option
"--count" : Precedes each output line with a count of the number of times the
line occurred in the input. |
UniqOptionSet_dg |
d
Option
"-d" : Suppresses the writing of lines that are not repeated in the input. |
UniqOptionSet_dg |
duplicatedOnly
Option
"--duplicatedOnly" : Suppresses the writing of lines that are not repeated in the input. |
UniqOptionSet_cdgu |
g
Option
"-g" : Suppresses repeated lines globally, that is, if lines are
non-adjacent. |
UniqOptionSet_cdgu |
global
Option
"--global" : Suppresses repeated lines globally, that is, if lines are
non-adjacent. |
static UniqOptionSets |
INSTANCE
The singleton instance.
|
UniqOptionSet_gu |
u
Option
"-u" : Suppresses the writing of lines that are repeated in the input. |
UniqOptionSet_gu |
uniqueOnly
Option
"--uniqueOnly" : Suppresses the writing of lines that are repeated in the input. |
Constructor and Description |
---|
UniqOptionSets() |
public static final UniqOptionSets INSTANCE
public final UniqOptionSet_cg c
"-c"
: Precedes each output line with a count of the number of times the
line occurred in the input.
The option "-c"
is equivalent to the "--
count
"
option.
public final UniqOptionSet_cg count
"--count"
: Precedes each output line with a count of the number of times the
line occurred in the input.
The option "--count"
is equivalent to the "-
c
"
option.
public final UniqOptionSet_dg d
"-d"
: Suppresses the writing of lines that are not repeated in the input.
The option "-d"
is equivalent to the "--
duplicatedOnly
"
option.
public final UniqOptionSet_dg duplicatedOnly
"--duplicatedOnly"
: Suppresses the writing of lines that are not repeated in the input.
The option "--duplicatedOnly"
is equivalent to the "-
d
"
option.
public final UniqOptionSet_cdgu g
"-g"
: 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.
The option "-g"
is equivalent to the "--
global
"
option.
public final UniqOptionSet_cdgu global
"--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.
The option "--global"
is equivalent to the "-
g
"
option.
public final UniqOptionSet_gu u
"-u"
: Suppresses the writing of lines that are repeated in the input.
The option "-u"
is equivalent to the "--
uniqueOnly
"
option.
public final UniqOptionSet_gu uniqueOnly
"--uniqueOnly"
: Suppresses the writing of lines that are repeated in the input.
The option "--uniqueOnly"
is equivalent to the "-
u
"
option.
public UniqOptionSets()
Copyright © 2024. All rights reserved.