Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ echo(1) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(1)

csh(1)



     echo(1)                    DG/UX 4.30                     echo(1)



     NAME
          echo - echo arguments

     SYNOPSIS
          echo [ arg ] ...

     DESCRIPTION
          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 \.  Arguments are as follows:

               \b   Backspace
               \c   Print line without new-line
               \f   Form-feed
               \n   New-line
               \r   Carriage return
               \t   Tab
               \\   Backslash
               \n   The 8-bit character whose ASCII code is the 1-, 2-
                    or 3-digit octal number n, which must start with a
                    zero.
               \v   Vertical tab

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

     EXAMPLES
          $ echo Hello World

          Prints the string "Hello World" on the standard output.

          $ echo *

          Prints the names of the files and subdirectories in the
          current working directory. This output is similar to that of
          ls(1), but the file and directory names are listed in one
          long line.  It is usually quicker than ls(1).

          $ if test ! -r book
          > then echo "file is not readable"
          > fi

          Tests if you do not have read permission for the file
          "book".  Echo prints "file is not readable" if the result of
          the "test ! -r book" command is true.

     SEE ALSO
          sh(1), csh(1).






     Licensed material--property of copyright holder(s)         Page 1



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