Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide


cat command (outputs files to the standard output)

Organization of this page

Format

cat [-b] [-n] [-s] [-u] [path-name ...]

Description

This command outputs one or more files to the standard output. If there are multiple files, they are concatenated and output.

Arguments

-b

Specifies that all non-blank output lines are to be assigned line numbers.

-n

Specifies that all output lines are to be assigned line numbers beginning with 1. Each line number is displayed as six digits. If the number of lines is such that line numbers cannot be accommodated in six digits, the number of digits is increased as necessary. A tab is output after each line number.

-s

Specifies that multiple consecutive blank lines are to be compressed and output as a single blank line.

-u

In UNIX, specifies that output buffering is to be suppressed.

In Windows, this option is ignored.

path-name

Specify the path name of a file to be output. Multiple path names can be specified, in which case the specified files are concatenated and then output. If no path name is specified, or if - is specified as the path name, the input is read from the standard input.

Return codes

Return code

Meaning

0

Normal termination

1 or greater

Error termination

Notes

Usage examples

These usage examples illustrate the results of executing the cat command on files abc.txt and abcdex.txt, whose contents are shown below. In the examples, [Figure] represents a space and [Figure] represents a tab character.

The files listed above are used as input files in the following examples, which illustrate the results of executing the cat command.