xref: /original-bsd/bin/echo/echo.1 (revision 6ab384a1)
1.\" Copyright (c) 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)echo.1	6.4 (Berkeley) 07/24/90
7.\"
8.Dd
9.Dt ECHO 1
10.Os 4.4
11.Sh NAME
12.Nm echo
13.Nd write arguments to the standard output
14.Sh SYNOPSIS
15.Nm echo
16.Op Fl n
17.Op string\& ...
18.Sh DESCRIPTION
19The
20.Nm
21utility writes its arguments to standard output,
22followed by a <newline> character.
23If there are no arguments,
24only the <newline> character is written.
25.Pp
26The following option is available:
27.Tw Ds
28.Tp Fl n
29The output is not terminated with a newline.
30.Tp
31.Pp
32The argument
33.Ar string
34defines a string to be written to standard output.
35.Pp
36.Nm Echo
37utility exits 0 on success, and >0 if an error occurs.
38.Sh STANDARDS
39The
40.Nm echo
41function is expected to be POSIX 1003.2 compatible.
42