Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ echo(1) — CLIX 3.1r7.6.28

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(1)



  echo(1)                             CLIX                             echo(1)



  NAME

    echo - Echos arguments

  SYNOPSIS

    echo [arg ... ]

  DESCRIPTION

    The echo command writes its arguments separated by blanks and terminated
    by a newline on stdout.  It also understands C-like escape conventions;
    beware of conflicts with the shell's use of \:

    \b    Backspace

    \c    Display line without newline

    \f    Formfeed

    \n    Newline

    \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 echo command is useful for producing diagnostics in command files and
    for sending known data into a pipe.

  EXAMPLES

    1.  To echo the string ``hello there'' to the terminal:

        echo hello there


    2.  To display two tabs, followed by the ``TADAA!!!''  string, then two
        bells, then two newlines:

        echo "\t\tTADAA!!!!\07\07\n\n"

        The quotes are necessary to protect the \ characters from the shell.

  NOTES



  2/94 - Intergraph Corporation                                              1






  echo(1)                             CLIX                             echo(1)



    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 display the string
    ``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''.

  EXIT VALUES

    Exit values are not valid.

  RELATED INFORMATION

    Commands: sh(1)







































  2                                              Intergraph Corporation - 2/94




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