print(1) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

print(1)

print(1)                         User Commands                        print(1)

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

SYNOPSIS
   /usr/bin/print
       print [-CRenprsv] [-f format] [-u fd] [string...]

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

   ksh
       print [-CRenprsv] [-f format] [-u fd] [string...]

DESCRIPTION
   ksh88
       The shell output mechanism. With no options or if the - option is spec‐
       ified, the arguments that follow are printed on standard output as  de‐
       scribed by echo(1). If the - option is specified, anything that follows
       it is processed as an argument, even if it begins with a -.

   /usr/bin/print, ksh
       By default, print writes each string operand to standard output and ap‐
       pends a NEWLINE character.


       Unless, the -r, -R, or -f option is specified, each \ character in each
       string operand is processed specially as follows:

       \a      Alert character.


       \b      Backspace character.


       \c      Terminate  output  without  appending  NEWLINE.  The  remaining
               string operands are ignored.


       \E      Escape character (ASCII octal 033).


       \f      FORM FEED character.


       \n      NEWLINE character.


       \t      Tab character.


       \v      Vertical tab character.


       \\      Backslash character.


       \0x     The 8-bit character whose ASCII code is the 1-, 2-, or  3-digit
               octal number x.


OPTIONS
   ksh88
       The following options are supported by ksh88:

       -n          Suppresses new-line from being added to the output.


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


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


       -s          Cause the arguments to be written onto the history file in‐
                   stead of standard output.


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


   /usr/bin/print, ksh
       The following options are supported by /usr/man/print and ksh:

       -e           Unless -f is specified, process \ sequences in each string
                    operand as described above. This is the default behavior.

                    If both -e and -r are specified, the last one specified is
                    the one that is used.


       -f format    Write  the string arguments using the format string format
                    and do not append a NEWLINE. See printf(1) for details  on
                    how to specify format.

                    When  the -f option is specified and there are more string
                    operands than format specifiers, the format string is  re‐
                    processed  from  the  beginning. If there are fewer string
                    operands than format specifiers, then outputting  ends  at
                    the first unneeded format specifier.


       -n           Do not append a NEWLINE character to the output.


       -p           Write  to  the current co-process instead of standard out‐
                    put.


       -r           Do not process \ sequences in each string operand  as  de‐
       -R           scribed above.

                    If both -e and -r are specified, the last one specified is
                    the one that is used.



       -s           Write the output as an entry in the shell history file in‐
                    stead of standard output.


       -u fd        Write  to  file  descriptor  number fd instead of standard
                    output. The default value is 1.


       -v           Treat each string as a variable name and write  the  value
                    in %B format. Cannot be used with -f


       -C           Treat  each  string as a variable name and write the value
                    in %#B format. Cannot be used with -f.


EXIT STATUS
       The following exit values are returned:

       0     Successful completion.


       >0    Output file is not open for writing.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE VALUE _ Availabilitysystem/core-os


SEE ALSO
       echo(1), ksh(1), ksh88(1), printf(1), attributes(7)

Oracle Solaris 11.4               27 Nov 2017                         print(1)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3