source: trunk/minix/man/man1/echo.1@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 1.5 KB
Line 
1.TH ECHO 1
2.SH NAME \" Copyright (C) 1989 by Kenneth Almquist.
3echo \- produce message in a shell script
4.SH SYNOPSIS
5.B echo
6[
7.B -n
8|
9.B -e
10]
11.I args...
12.SH DESCRIPTION
13.I Echo
14prints its arguments on the standard output, separated by spaces.
15Unless the
16.B -n
17option is present, a newline is output following the arguments.
18The
19.B -e
20option causes
21.I echo
22to treat the escape sequences specially, as described in the following
23paragraph.
24Only one of the options
25.B -n
26and
27.B -e
28may be given.
29.PP
30If any of the following sequences of characters is encountered during
31output, the sequence is not output. Instead, the specified action is
32performed:
33.de i
34.IP "\\fB\\$1\\fR" 5
35..
36.i \eb
37A backspace character is output.
38.i \ec
39Subsequent output is suppressed. This is normally used at the end of the
40last argument to suppress the trailing newline that
41.I echo
42would otherwise output.
43.i \ef
44Output a form feed.
45.i \en
46Output a newline character.
47.i \er
48Output a carriage return.
49.i \et
50Output a (horizontal) tab character.
51.i \ev
52Output a vertical tab.
53.i \e0\fIdigits\fR
54Output the character whose value is given by zero to three digits.
55If there are zero digits, a nul character is output.
56.i \e\e
57Output a backslash.
58.SH HINTS
59Remember that backslash is special to the shell and needs to be escaped.
60To output a message to standard error, say
61.sp
62.ti +1i
63echo message >&2
64.SH BUGS
65The octal character escape mechanism (\e0\fIdigits\fR) differs from the
66C language mechanism.
67.SH AUTHOR
68Kenneth Almquist.
Note: See TracBrowser for help on using the repository browser.