public final class Cat extends Object
NAME
cat - concatenate and print files
SYNOPSIS
cat | |
cat <args> | |
cat <files> | |
cat <inputs> | |
cat [-bns] | |
cat [-bns] <files> | |
cat [-bns] <paths> | |
cat [-bns] <inputs> |
See Cat.Interface
for the corresponding command signature methods.
DESCRIPTION
The cat utility reads files sequentially, writing them to the standard output. The file operands are processed in command-argument order. If no file argument is specified, cat reads from the standard input.
Options
The following options are supported:
-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. |
OPERANDS
The following operands are supported:
<files> | : | java.io.File... | The input files to be printed; relative paths are not resolved (use the string path argument to enable relative path resolving based on the current working directory). | ||
<paths> | : | String... | Path names of the input files to be printed; wildcards * and ? are supported; relative paths are resolved on the basis of the current working directory. | ||
<inputs> | : | org.unix4j.io.Input... | The inputs to be printed. | ||
<args> | : | String... | String arguments defining the options and file operands for the command. Options can be specified by acronym (with a leading dash "-") or by long name (with two leading dashes "--"). File arguments are expanded if wildcards are used. | ||
<options> | : | CatOptions | Options for the cat command. |
Modifier and Type | Class and Description |
---|---|
static interface |
Cat.Interface<R>
Interface defining all method signatures for the "cat" command.
|
Modifier and Type | Field and Description |
---|---|
static CatFactory |
Factory
Singleton
factory instance for the "cat" command. |
static String |
NAME
The "cat" command name.
|
static CatOptionSets |
Options
|
public static final String NAME
public static final CatOptionSets Options
public static final CatFactory Factory
factory
instance for the "cat" command.Copyright © 2024. All rights reserved.