public final class TailOptionSets extends Object
tail
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. | |||
-s | --countFromStart | The count argument is relative to the beginning of the file
instead of counting from the end of the file. For instance,
tail -s 10 prints the lines starting from line 10;
tail -s 1 prints the whole file. |
This class serves as entry point to every possible set of tail
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:
tail(Tail.Options.c, ...); tail(Tail.Options.c.q, ...); ... tail(Tail.Options.c.q.s, ...);
Modifier and Type | Field and Description |
---|---|
TailOptionSet_cqs |
c
Option
"-c" : The count argument is in units of characters instead of
lines. |
TailOptionSet_cqs |
chars
Option
"--chars" : The count argument is in units of characters instead of
lines. |
TailOptionSet_cqs |
countFromStart
Option
"--countFromStart" : The count argument is relative to the beginning of the file
instead of counting from the end of the file. |
static TailOptionSets |
INSTANCE
The singleton instance.
|
TailOptionSet_cqs |
q
Option
"-q" : Suppresses printing of headers when multiple files are being
examined. |
TailOptionSet_cqs |
s
Option
"-s" : The count argument is relative to the beginning of the file
instead of counting from the end of the file. |
TailOptionSet_cqs |
suppressHeaders
Option
"--suppressHeaders" : Suppresses printing of headers when multiple files are being
examined. |
Constructor and Description |
---|
TailOptionSets() |
public static final TailOptionSets INSTANCE
public final TailOptionSet_cqs 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 TailOptionSet_cqs 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 TailOptionSet_cqs s
"-s"
: The count
argument is relative to the beginning of the file
instead of counting from the end of the file. For instance,
tail -s 10
prints the lines starting from line 10;
tail -s 1
prints the whole file.
The option "-s"
is equivalent to the "--
countFromStart
"
option.
public final TailOptionSet_cqs countFromStart
"--countFromStart"
: The count
argument is relative to the beginning of the file
instead of counting from the end of the file. For instance,
tail -s 10
prints the lines starting from line 10;
tail -s 1
prints the whole file.
The option "--countFromStart"
is equivalent to the "-
s
"
option.
public final TailOptionSet_cqs q
"-q"
: Suppresses printing of headers when multiple files are being
examined.
The option "-q"
is equivalent to the "--
suppressHeaders
"
option.
public final TailOptionSet_cqs suppressHeaders
"--suppressHeaders"
: Suppresses printing of headers when multiple files are being
examined.
The option "--suppressHeaders"
is equivalent to the "-
q
"
option.
public TailOptionSets()
Copyright © 2024. All rights reserved.