xref: /original-bsd/bin/echo/echo.1 (revision 909c03fb)
1.\" Copyright (c) 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the Institute of Electrical and Electronics Engineers, Inc.
6.\"
7.\" %sccs.include.redist.roff%
8.\"
9.\"	@(#)echo.1	6.8 (Berkeley) 07/27/91
10.\"
11.Dd
12.Dt ECHO 1
13.Os
14.Sh NAME
15.Nm echo
16.Nd write arguments to the standard output
17.Sh SYNOPSIS
18.Nm echo
19.Op Fl n
20.Op "string ..."
21.Sh DESCRIPTION
22The
23.Nm echo
24utility writes any specified operands, separated by single blank (`` '')
25characters) and followed by a newline (``\en'') character, to the standard
26output.
27.Pp
28The following option is available:
29.Bl -tag -width flag
30.It Fl n
31Do not print the trailing newline character.
32.El
33.Pp
34The
35.Nm echo
36utility exits 0 on success, and >0 if an error occurs.
37.Sh SEE ALSO
38.Xr printf 1
39.Sh STANDARDS
40The
41.Nm echo
42utility is expected to be
43.St -p1003.2
44compatible.
45