public final class HeadOptionSets extends Object
head
command with the
the following options:
-c | --chars | The count argument is in units of characters instead of
lines. Starts from 1 and includes line ending characters. | |||
-q | --suppressHeaders | Suppresses printing of headers when multiple files are being examined. |
This class serves as entry point to every possible set of head
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:
head(Head.Options.c, ...); head(Head.Options.c.q, ...);
Modifier and Type | Field and Description |
---|---|
HeadOptionSet_cq |
c
Option
"-c" : The count argument is in units of characters instead of
lines. |
HeadOptionSet_cq |
chars
Option
"--chars" : The count argument is in units of characters instead of
lines. |
static HeadOptionSets |
INSTANCE
The singleton instance.
|
HeadOptionSet_cq |
q
Option
"-q" : Suppresses printing of headers when multiple files are being
examined. |
HeadOptionSet_cq |
suppressHeaders
Option
"--suppressHeaders" : Suppresses printing of headers when multiple files are being
examined. |
Constructor and Description |
---|
HeadOptionSets() |
public static final HeadOptionSets INSTANCE
public final HeadOptionSet_cq c
"-c"
: The count
argument is in units of characters instead of
lines. Starts from 1 and includes line ending characters.
The option "-c"
is equivalent to the "--
chars
"
option.
public final HeadOptionSet_cq chars
"--chars"
: The count
argument is in units of characters instead of
lines. Starts from 1 and includes line ending characters.
The option "--chars"
is equivalent to the "-
c
"
option.
public final HeadOptionSet_cq q
"-q"
: Suppresses printing of headers when multiple files are being
examined.
The option "-q"
is equivalent to the "--
suppressHeaders
"
option.
public final HeadOptionSet_cq suppressHeaders
"--suppressHeaders"
: Suppresses printing of headers when multiple files are being
examined.
The option "--suppressHeaders"
is equivalent to the "-
q
"
option.
public HeadOptionSets()
Copyright © 2024. All rights reserved.