public final class CutOptionSets extends Object
cut
command with the
the following options:
-c | --chars | The list specifies character positions. | |||
-f | --fields | The list specifies fields, separated in the input by the field delimiter character (see the -d option.) Output fields are separated by a single occurrence of the field delimiter character. |
This class serves as entry point to every possible set of cut
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:
cut(Cut.Options.c, ...); cut(Cut.Options.c.f, ...);
Modifier and Type | Field and Description |
---|---|
CutOptionSet_cf |
c
Option
"-c" : The list specifies character positions. |
CutOptionSet_cf |
chars
Option
"--chars" : The list specifies character positions. |
CutOptionSet_cf |
f
Option
"-f" : The list specifies fields, separated in the input by the field
delimiter character (see the -d option.) Output fields are
separated by a single occurrence of the field delimiter character. |
CutOptionSet_cf |
fields
Option
"--fields" : The list specifies fields, separated in the input by the field
delimiter character (see the -d option.) Output fields are
separated by a single occurrence of the field delimiter character. |
static CutOptionSets |
INSTANCE
The singleton instance.
|
Constructor and Description |
---|
CutOptionSets() |
public static final CutOptionSets INSTANCE
public final CutOptionSet_cf c
"-c"
: The list specifies character positions.
The option "-c"
is equivalent to the "--
chars
"
option.
public final CutOptionSet_cf chars
"--chars"
: The list specifies character positions.
The option "--chars"
is equivalent to the "-
c
"
option.
public final CutOptionSet_cf f
"-f"
: The list specifies fields, separated in the input by the field
delimiter character (see the -d option.) Output fields are
separated by a single occurrence of the field delimiter character.
The option "-f"
is equivalent to the "--
fields
"
option.
public final CutOptionSet_cf fields
"--fields"
: The list specifies fields, separated in the input by the field
delimiter character (see the -d option.) Output fields are
separated by a single occurrence of the field delimiter character.
The option "--fields"
is equivalent to the "-
f
"
option.
public CutOptionSets()
Copyright © 2024. All rights reserved.