Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ echo(1) — UTek W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

csh(1csh)

echo(1csh)

echo(1sh)

make(1)

sh(1sh)



ECHO(1)                 COMMAND REFERENCE                 ECHO(1)



NAME
     echo - echo arguments

SYNOPSIS
     echo [ -n ] [ arg ] ...

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

          \b   backspace
          \c   print line up to \c without newline
          \f   form-feed
          \n   newline
          \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.

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

     Echo is also built into sh with exactly the same
     functionality.

OPTIONS
     -n  Suppress printing of the trailing newline. Equivalent to
         ending arguments with \c.

EXAMPLES
     The following invocation of echo will print the sentence
     "This is a test.", followed by a newline.



          echo This is a test.


     The following invocation of echo will print the sentence
     "This is a test."; the newline will not be printed.



          echo This is a test.\cthis text will not be printed.


RETURN VALUE
     [NO_ERRS]      Command completed without error.



Printed 10/17/86                                                1





ECHO(1)                 COMMAND REFERENCE                 ECHO(1)



CAVEATS
     Beware of conflicts with the shell's use of \.

     If the first argument begins with -n but has more
     characters, as in


          echo -none

     the argument is printed as is, and the newline is not
     suppressed by this argument.

     The csh built-in command echo does not know about the C-like
     escape conventions.

     Echo is actually a shell script which executes the sh
     built-in command.  This is provided for programs like
     make(1) that need to execute echo directly.

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


































Printed 10/17/86                                                2





































































%%index%%
na:72,57;
sy:129,129;
de:258,1005;
op:1263,164;
ex:1427,437;
rv:1864,132;
ca:2140,669;
se:2809,203;
%%index%%000000000133

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