xref: /original-bsd/bin/echo/echo.1 (revision d54be081)
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.6 (Berkeley) 06/17/91
7.\"
8.Vx
9.Dd
10.Dt ECHO 1
11.Os
12.Sh NAME
13.Nm echo
14.Nd write arguments to the standard output
15.Sh SYNOPSIS
16.Nm echo
17.Op Fl n
18.Op string\& ...
19.Sh DESCRIPTION
20The
21.Nm
22utility writes any specified operands (separated by single blank (`` '')
23characters), followed by a newline (``\en'') character, to the standard
24output.
25.Pp
26The following option is available:
27.Tw Ds
28.Tp Fl n
29Do not print the trailing newline character.
30.Tp
31.Pp
32.Nm Echo
33utility exits 0 on success, and >0 if an error occurs.
34.Sh SEE ALSO
35.Xr printf 1
36.Sh STANDARDS
37The
38.Nm echo
39function is expected to be POSIX 1003.2 compatible.
40