Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ echo(1) — Dell System V Release 4 Issue 2.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(1)



echo(1)            UNIX System V(BSD Compatibility Package)             echo(1)


NAME
      echo - echo arguments

SYNOPSIS
      /usr/ucb/echo [ arg ] . . .
      /usr/ucb/echo [ -n ] [ arg ]

DESCRIPTION
      echo writes its arguments separated by blanks and terminated by a new-
      line on the standard output.

      The /usr/bin/sh version understands the following C-like escape
      conventions; beware of conflicts with the shell's use of \:

            \b    backspace
            \c    print line without new-line
            \f    form-feed
            \n    new-line
            \r    carriage return
            \t    tab
            \v    vertical tab
            \\    backslash
            \0n   where n is the 8-bit character whose ASCII code is the 1-, 2-
                  or 3-digit octal number representing that character.

      The following option is available to /usr/bin/sh users only if /usr/ucb
      preceds /usr/bin in the user's PATH. It is available to /usr/csh users,
      regardless of PATH:

            -n    Do not add the newline to the output.

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

SEE ALSO
      sh(1) in the User's Reference Manual

NOTES
      The -n option is a transition aid for BSD applications, and may not be
      supported in future releases.

      The When representing an 8-bit character by using the escape convention
      \0n, the n must always be preceded by the digit zero (0).
      For example, typing:  echo 'WARNING:\07' will print the phrase WARNING:
      and sound the ``bell'' on your terminal.  The use of single (or double)
      quotes (or two backslashes) is required to protect the ``\'' that
      precedes the ``07''.
      For the octal equivalents of each character, see ascii(5), in the System
      Administrator's Reference Manual.





10/89                                                                    Page 1





Typewritten Software • bear@typewritten.org • Edmonds, WA 98026