107 lines
2.6 KiB
HTML
107 lines
2.6 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||
|
<meta http-equiv="Content-Type" content=
|
||
|
"text/html; charset=utf-8">
|
||
|
<title>print - Write output</title>
|
||
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
</HEAD>
|
||
|
<body bgcolor="#FFFFFF">
|
||
|
<!-- Java sync-link -->
|
||
|
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
||
|
|
||
|
|
||
|
|
||
|
<h2>print - Write output</h2>
|
||
|
|
||
|
<strong>Synopsis</strong>
|
||
|
|
||
|
<p><strong>print</strong> [ <strong>-nrR</strong> ] [ <strong>
|
||
|
-u</strong> [ <em>n</em> ] ] [ <em>argument</em> ... ]</p>
|
||
|
|
||
|
<p><strong>Description</strong></p>
|
||
|
|
||
|
<p>You can use <strong>print</strong> to display each <em>
|
||
|
argument</em> on standard output separated by a <space>
|
||
|
character and followed by a <newline> character.</p>
|
||
|
|
||
|
<p>Unless you specify <strong>-r</strong> or <strong>-R</strong>,
|
||
|
print formats the output using the following conventions:</p>
|
||
|
|
||
|
<ul>
|
||
|
<li><strong>\a</strong> Bell.</li>
|
||
|
|
||
|
<li><strong>\b</strong> Backspace.</li>
|
||
|
|
||
|
<li><strong>\c</strong> Print without adding newline character. The
|
||
|
remaining <em>arguments</em> are ignored.</li>
|
||
|
|
||
|
<li><strong>\f</strong> Formfeed.</li>
|
||
|
|
||
|
<li><strong>\n</strong> Newline.</li>
|
||
|
|
||
|
<li><strong>\r</strong> Return.</li>
|
||
|
|
||
|
<li><strong>\t</strong> Tab.</li>
|
||
|
|
||
|
<li><strong>\v</strong> Vertical tab.</li>
|
||
|
|
||
|
<li><strong>\\</strong> Backslash.</li>
|
||
|
|
||
|
<li><strong>\0x</strong> The character whose EBCDIC code is the 1,
|
||
|
2, or 3-digit octal number x.</li>
|
||
|
</ul>
|
||
|
|
||
|
<p><strong>Options</strong></p>
|
||
|
|
||
|
<dl>
|
||
|
<dt><strong>-n</strong></dt>
|
||
|
|
||
|
<dd>Do not add a trailing newline character to the output.</dd>
|
||
|
|
||
|
<dt><strong>-r</strong></dt>
|
||
|
|
||
|
<dd>Do not use the conventions listed above.</dd>
|
||
|
|
||
|
<dt><strong>-R</strong></dt>
|
||
|
|
||
|
<dd>Do not use the conventions listed above.</dd>
|
||
|
|
||
|
<dt><strong>-u</strong> <em>n</em></dt>
|
||
|
|
||
|
<dd>Write output to descriptor <em>n</em> if specified or
|
||
|
descriptor 1 by default. The descriptor must be 1, 2, or one you
|
||
|
opened with <strong>exec</strong>.</dd>
|
||
|
</dl>
|
||
|
|
||
|
<p><strong>Operands</strong></p>
|
||
|
|
||
|
<p>Each <em>argument</em> is printed on standard output.</p>
|
||
|
|
||
|
<p><strong>Exit Status</strong></p>
|
||
|
|
||
|
<ul>
|
||
|
<li>0 when successful.</li>
|
||
|
|
||
|
<li>>0 wnen unsuccessful.</li>
|
||
|
</ul>
|
||
|
|
||
|
<p><strong>Related information</strong></p>
|
||
|
|
||
|
<ul>
|
||
|
<li><a href="dspmsg.htm">dspmsg - Display message from message
|
||
|
catalog</a></li>
|
||
|
|
||
|
<li><a href="exec.htm">exec - Run commands and open, close, or copy
|
||
|
descriptors</a></li>
|
||
|
|
||
|
<li><a href="echo.htm">echo - Write arguments to standard
|
||
|
output</a></li>
|
||
|
|
||
|
<li><a href="printf.htm">printf - Write formatted output</a></li>
|
||
|
</ul>
|
||
|
</body>
|
||
|
</html>
|
||
|
|