Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ echo(1) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                                  echo(1)



        _________________________________________________________________
        echo                                                      Command
        echo arguments
        _________________________________________________________________


        SYNTAX

        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




        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)





                                                                  echo(1)



        > 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)








































        DG/UX 4.00                                                 Page 2
               Licensed material--property of copyright holder(s)



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