*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> echo (1)              


 echo(1)                                                             echo(1)

 NAME    [Toc]    [Back]
      echo - echo (print) arguments

 SYNOPSIS    [Toc]    [Back]
      echo [arg] ...

 DESCRIPTION    [Toc]    [Back]
      echo writes its arguments separated by blanks and terminated by a
      new-line on the standard output.  It also understands C-like escape
      conventions; beware of conflicts with the shell's use of \:

           \a        write an alert character
           \b        backspace
           \c        print line without appending a new-line
           \f        form-feed
           \n        new-line
           \r        carriage return
           \t        tab
           \v        vertical tab
           \\        backslash
           \n        the 8-bit character whose ASCII code is the 1-, 2-, 3-
                     or 4-digit octal number n, whose first character must
                     be a zero.
           \0num     write an 8-bit value that is the zero-, one-, two- or
                     three-digit octal number num

      echo is useful for producing diagnostics in command files and for
      sending known data into a pipe.

    Notes    [Toc]    [Back]
      Berkeley echo differs from this implementation.  The former does not
      implement the backslash escapes.  However, the semantics of the \c
      escape can be obtained by using the -n option.  The echo command
      implemented as a built-in function of csh follows the Berkeley
      semantics (see csh(1)).

    Environment Variables
      LC_CTYPE determines the interpretation of arg as single and/or multibyte

      If LC_CTYPE is not specified in the environment or is set to the empty
      string, the value of LANG is used as a default for each unspecified or
      empty variable.  If LANG is not specified or is set to the empty
      string, a default of "C" (see lang(5)) is used instead of LANG.  If
      any internationalization variable contains an invalid setting, echo
      behaves as if all internationalization variables are set to "C".  See

    International Code Set Support    [Toc]    [Back]
      Single- and multi-byte character code sets are supported.

 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003

 echo(1)                                                             echo(1)

 AUTHOR    [Toc]    [Back]
      echo was developed by OSF and HP.

 SEE ALSO    [Toc]    [Back]

 BUGS    [Toc]    [Back]
      No characters are printed after the first \c.  This is not normally a

      echo: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2

 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
 Similar pages
Name OS Title
echo IRIX echo arguments
printf HP-UX format and print arguments
pam_echo FreeBSD Echo PAM module
ng_echo FreeBSD netgraph echo node type
epd IRIX AppleTalk Echo Protocol daemon
xmessage IRIX display a message or query in a window (X-based /bin/echo)
sat_echo IRIX echo standard input into the system audit trail
ping HP-UX send ICMP Echo Request packets to network host
rnlecho IRIX Specifies output unit for NAMELIST error messages and echo lines
expr IRIX evaluate arguments as an expression
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service