Annotation of researchv10dc/man/adm/man1/echo.1, revision 1.1.1.1

1.1       root        1: .TH ECHO 1 
                      2: .CT 1 shell
                      3: .SH NAME
                      4: echo, printf \- print arguments
                      5: .SH SYNOPSIS
                      6: .B echo
                      7: [
                      8: .B -n
                      9: ]
                     10: [
                     11: .B -e
                     12: ]
                     13: [
                     14: .I arg ...
                     15: ]
                     16: .PP
                     17: .B printf
                     18: [
                     19: .I format
                     20: [
                     21: .I arg...
                     22: ]
                     23: ]
                     24: .SH DESCRIPTION
                     25: .I Echo
                     26: writes its arguments separated by blanks and terminated by
                     27: a newline on the standard output.
                     28: Option
                     29: .B -n
                     30: suppresses the newline.
                     31: .PP
                     32: Option 
                     33: .B -e
                     34: enables the interpretation of C-style escape codes,
                     35: .LR \eb ,
                     36: .LR \ef ,
                     37: .LR \en ,
                     38: .LR \er ,
                     39: .LR \et ,
                     40: .LR \e\e ,
                     41: .L and 
                     42: .BI \e ddd,
                     43: where
                     44: .I d
                     45: is an octal digit,
                     46: plus the special code
                     47: .LR \ec ,
                     48: which terminates the output.
                     49: .PP
                     50: .I Echo
                     51: is useful for producing diagnostics in
                     52: shell programs and for writing constant data on pipes.
                     53: .PP
                     54: .I Printf
                     55: behaves like the library function of the same name; each
                     56: .I arg
                     57: is printed on the standard output according to the corresponding
                     58: \&%-introduced specification in the
                     59: .I format
                     60: string.  The standard C escape sequences
                     61: .BR \en ,
                     62: .BR \er ,
                     63: .BR \et ,
                     64: .BR \eb ,
                     65: and
                     66: .BI \e digits
                     67: are recognized in
                     68: .IR format .
                     69: The
                     70: .I arg
                     71: will be treated as a string if the corresponding format is
                     72: .BR s ;
                     73: otherwise it is evaluated as a C constant, with the following extensions:
                     74: .IP
                     75: A leading plus or minus is allowed.
                     76: .IP
                     77: If the leading character is a single or double quote, the value is the
                     78: .SM ASCII
                     79: code of the next character.
                     80: .IP
                     81: Otherwise, if the leading character is not a digit, the value is its
                     82: .SM ASCII
                     83: code.
                     84: .PP
                     85: The format string is reused as often as necessary to satisfy the
                     86: .IR arg "'s."
                     87: Any extra format specifications are evaluated with zero or the null string.
                     88: .SH EXAMPLES
                     89: .TP
                     90: .L
                     91: echo "can't open file" $1 1>&2
                     92: Send a message to the standard error file.
                     93: .SH SEE ALSO
                     94: .IR printf (3)
                     95: .SH BUGS
                     96: .I Printf
                     97: has no diagnostics for illegal syntax.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.