man pages section 1: User Commands
只搜寻这本书
查看这本书:
以 PDF 格式下载本书 (6561 KB)

print(1)

Name | Synopsis | Description | Options | Exit Status | Attributes | See Also

Name

    print– shell built-in function to output characters to the screen or window

Synopsis

    ksh

      print [-Rnprsu [n]] [arg]...

Description

    ksh

      The shell output mechanism. When no options are specified, or when an option followed by ' a - is specified, or when just - is specified, the arguments are printed on standard output as described by echo(1).

Options

    The following options are supported:

    -n

    Suppress a NEWLINE from being added to the output.

    -p

    Cause the arguments to be written onto the pipe of the process spawned with |& instead of standard output.

    -r
    -R

    Raw mode. Ignore the escape conventions of echo. The -R option prints all subsequent arguments and options other than -n.

    -s

    Cause the arguments to be written onto the history file instead of standard output.

    -u [ n ]

    Specify a one digit file descriptor unit number n on which the output is placed. The default is 1.

Exit Status

    The following exit values are returned:

    0

    Successful completion.

    >0

    Output file is not open for writing.

Attributes

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPE

    ATTRIBUTE VALUE

    Availability

    SUNWcsu

See Also

SunOS 5.10 Last Revised 2 May 2008

Name | Synopsis | Description | Options | Exit Status | Attributes | See Also