Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ echo(C) — OpenDesktop 1.0.0y

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(C)


     ECHO(C)                                    UNIX System V



     Name
          echo - echoes arguments


     Syntax
          echo [ arg ] ...
          /bin/echo [ arg ] ...


     Description
          echo writes its arguments separated by blanks and terminated
          by  a newline on the standard output.  echo also understands
          C-like escape conventions.  The following  escape  sequences
          need  to  be  quoted  so  that  the  shell  interprets  them
          correctly:

          \b   Backspace
          \c   Prints line without newline

          \f   Form feed
          \n   Newline

          \r   Carriage return
          \t   Tab

          \v   Vertical tab
          \\   Backslash

          \n   The 8-bit character whose ASCII code is a 1,  2  or  3-
               digit  octal number.  In all cases, n must start with a
               zero.  For example:

                    echo "\07"     - Echoes Ctrl-G.
                    echo "\007"    - Also echoes Ctrl-G.
                    echo "\065"    - Echoes the number ``5''.
                    echo "\0101"   - Echoes the letter ``A''.

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

     See Also
          sh(C)

     Notes
          The csh(C) has a built-in echo utility which has a different
          syntax  than  this  echo.  Be aware that users running under
          csh will get the built-in echo unless they specify /bin/echo.

     Standards Conformance
          echo is conformant with:

          AT&T SVID Issue 2, Select Code 307-127;
          and The X/Open Portability Guide II of January 1987.


     (printed 8/28/89)                                  ECHO(C)

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