public final class CatOptionSets extends Object
cat
command with the
the following options:
-b | --numberNonBlankLines | Number the non-blank output lines, starting at 1. | |||
-n | --numberLines | Number the output lines, starting at 1. | |||
-s | --squeezeEmptyLines | Squeeze multiple adjacent empty lines, causing the output to be single spaced. |
This class serves as entry point to every possible set of cat
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:
cat(Cat.Options.b, ...); cat(Cat.Options.b.n, ...); ... cat(Cat.Options.b.n.s, ...);
Modifier and Type | Field and Description |
---|---|
CatOptionSet_bs |
b
Option
"-b" : Number the non-blank output lines, starting at 1. |
static CatOptionSets |
INSTANCE
The singleton instance.
|
CatOptionSet_ns |
n
Option
"-n" : Number the output lines, starting at 1. |
CatOptionSet_ns |
numberLines
Option
"--numberLines" : Number the output lines, starting at 1. |
CatOptionSet_bs |
numberNonBlankLines
Option
"--numberNonBlankLines" : Number the non-blank output lines, starting at 1. |
CatOptionSet_bns |
s
Option
"-s" : Squeeze multiple adjacent empty lines, causing the output to be
single spaced. |
CatOptionSet_bns |
squeezeEmptyLines
Option
"--squeezeEmptyLines" : Squeeze multiple adjacent empty lines, causing the output to be
single spaced. |
Constructor and Description |
---|
CatOptionSets() |
public static final CatOptionSets INSTANCE
public final CatOptionSet_ns n
"-n"
: Number the output lines, starting at 1.
The option "-n"
is equivalent to the "--
numberLines
"
option.
public final CatOptionSet_ns numberLines
"--numberLines"
: Number the output lines, starting at 1.
The option "--numberLines"
is equivalent to the "-
n
"
option.
public final CatOptionSet_bs b
"-b"
: Number the non-blank output lines, starting at 1.
The option "-b"
is equivalent to the "--
numberNonBlankLines
"
option.
public final CatOptionSet_bs numberNonBlankLines
"--numberNonBlankLines"
: Number the non-blank output lines, starting at 1.
The option "--numberNonBlankLines"
is equivalent to the "-
b
"
option.
public final CatOptionSet_bns s
"-s"
: Squeeze multiple adjacent empty lines, causing the output to be
single spaced.
The option "-s"
is equivalent to the "--
squeezeEmptyLines
"
option.
public final CatOptionSet_bns squeezeEmptyLines
"--squeezeEmptyLines"
: Squeeze multiple adjacent empty lines, causing the output to be
single spaced.
The option "--squeezeEmptyLines"
is equivalent to the "-
s
"
option.
public CatOptionSets()
Copyright © 2024. All rights reserved.