⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uuencode.html

📁 posix标准英文,html格式
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta name="generator" content="HTML Tidy, see www.w3.org"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group's rhtm tool v1.2.1 --><!-- Copyright (c) 2001-2004 IEEE and The Open Group, All Rights Reserved --><title>uuencode</title></head><body bgcolor="white"><script type="text/javascript" language="JavaScript" src="../jscript/codes.js"></script><basefont size="3"> <a name="uuencode"></a> <a name="tag_04_163"></a><!-- uuencode --> <!--header start--><center><font size="2">The Open Group Base Specifications Issue 6<br>IEEE Std 1003.1, 2004 Edition<br>Copyright &copy; 2001-2004 The IEEE and The Open Group, All Rights reserved.</font></center><!--header end--><hr size="2" noshade><h4><a name="tag_04_163_01"></a>NAME</h4><blockquote>uuencode - encode a binary file</blockquote><h4><a name="tag_04_163_02"></a>SYNOPSIS</h4><blockquote class="synopsis"><div class="box"><code><tt><sup>[<a href="javascript:open_code('UP')">UP</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0"> uuencode</tt> <b>[</b><tt>-m</tt><b>][</b><i>file</i><b>]</b> <i>decode_pathname</i><tt><img src="../images/opt-end.gif" alt="[Option End]" border="0"></tt></code></div></blockquote><h4><a name="tag_04_163_03"></a>DESCRIPTION</h4><blockquote><p>The <i>uuencode</i> utility shall write an encoded version of the named input file, or standard input if no <i>file</i> isspecified, to standard output. The output shall be encoded using one of the algorithms described in the STDOUT section and shallinclude the file access permission bits (in <a href="../utilities/chmod.html"><i>chmod</i></a> octal or symbolic notation) of theinput file and the <i>decode_pathname</i>, for re-creation of the file on another system that conforms to this volume ofIEEE&nbsp;Std&nbsp;1003.1-2001.</p></blockquote><h4><a name="tag_04_163_04"></a>OPTIONS</h4><blockquote><p>The <i>uuencode</i> utility shall conform to the Base Definitions volume of IEEE&nbsp;Std&nbsp;1003.1-2001, <a href="../basedefs/xbd_chap12.html#tag_12_02">Section 12.2, Utility Syntax Guidelines</a>.</p><p>The following option shall be supported by the implementation:</p><dl compact><dt><b>-m</b></dt><dd>Encode the output using the MIME Base64 algorithm described in STDOUT. If <b>-m</b> is not specified, the historical algorithmdescribed in STDOUT shall be used.</dd></dl></blockquote><h4><a name="tag_04_163_05"></a>OPERANDS</h4><blockquote><p>The following operands shall be supported:</p><dl compact><dt><i>decode_pathname</i></dt><dd>The pathname of the file into which the <a href="../utilities/uudecode.html"><i>uudecode</i></a> utility shall place the decodedfile. Specifying a <i>decode_pathname</i> operand of <b>/dev/stdout</b> shall indicate that <a href="../utilities/uudecode.html"><i>uudecode</i></a> is to use standard output. If there are characters in <i>decode_pathname</i> thatare not in the portable filename character set the results are unspecified.</dd><dt><i>file</i></dt><dd>A pathname of the file to be encoded.</dd></dl></blockquote><h4><a name="tag_04_163_06"></a>STDIN</h4><blockquote><p>See the INPUT FILES section.</p></blockquote><h4><a name="tag_04_163_07"></a>INPUT FILES</h4><blockquote><p>Input files can be files of any type.</p></blockquote><h4><a name="tag_04_163_08"></a>ENVIRONMENT VARIABLES</h4><blockquote><p>The following environment variables shall affect the execution of <i>uuencode</i>:</p><dl compact><dt><i>LANG</i></dt><dd>Provide a default value for the internationalization variables that are unset or null. (See the Base Definitions volume ofIEEE&nbsp;Std&nbsp;1003.1-2001, <a href="../basedefs/xbd_chap08.html#tag_08_02">Section 8.2, Internationalization Variables</a> forthe precedence of internationalization variables used to determine the values of locale categories.)</dd><dt><i>LC_ALL</i></dt><dd>If set to a non-empty string value, override the values of all the other internationalization variables.</dd><dt><i>LC_CTYPE</i></dt><dd>Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte asopposed to multi-byte characters in arguments and input files).</dd><dt><i>LC_MESSAGES</i></dt><dd>Determine the locale that should be used to affect the format and contents of diagnostic messages written to standarderror.</dd><dt><i>NLSPATH</i></dt><dd><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0">Determine the location of message catalogs for the processing of <i>LC_MESSAGES .</i> <img src="../images/opt-end.gif" alt="[Option End]" border="0"></dd></dl></blockquote><h4><a name="tag_04_163_09"></a>ASYNCHRONOUS EVENTS</h4><blockquote><p>Default.</p></blockquote><h4><a name="tag_04_163_10"></a>STDOUT</h4><blockquote><h5><a name="tag_04_163_10_01"></a>uuencode Base64 Algorithm</h5><p>The standard output shall be a text file (encoded in the character set of the current locale) that begins with the line:</p><pre><tt>"begin-base64<img src="../images/delta.gif" border="0">%s<img src="../images/delta.gif" border="0">%s\n", &lt;</tt><i>mode</i><tt>&gt;, &lt;</tt><i>decode_pathname</i><tt>&gt;</tt></pre><p>and ends with the line:</p><pre><tt>"====\n"</tt></pre><p>In both cases, the lines shall have no preceding or trailing &lt;blank&gt;s.</p><p>The encoding process represents 24-bit groups of input bits as output strings of four encoded characters. Proceeding from leftto right, a 24-bit input group shall be formed by concatenating three 8-bit input groups. Each 24-bit input group then shall betreated as four concatenated 6-bit groups, each of which shall be translated into a single digit in the Base64 alphabet. Whenencoding a bit stream via the Base64 encoding, the bit stream shall be presumed to be ordered with the most-significant bit first.That is, the first bit in the stream shall be the high-order bit in the first byte, and the eighth bit shall be the low-order bitin the first byte, and so on. Each 6-bit group is used as an index into an array of 64 printable characters, as shown in <a href="#tagtcjh_19">uuencode Base64 Values</a>.</p><center><b><a name="tagtcjh_19"></a> Table: uuencode Base64 Values</b></center><center><table border="1" cellpadding="3" align="center"><tr valign="top"><th align="center"><p class="tent"><b>Value</b></p></th><th align="center"><p class="tent"><b>Encoding</b></p></th><th align="left"><p class="tent">Value</p></th><th align="center"><p class="tent"><b>Encoding</b></p></th><th align="center"><p class="tent"><b>Value</b></p></th><th align="left"><p class="tent">Encoding</p></th><th align="center"><p class="tent"><b>Value</b></p></th><th align="center"><p class="tent"><b>Encoding</b></p></th><th align="left"><p class="tent">&nbsp;</p></th><th align="center"><p class="tent"><b>&nbsp;</b></p></th><th align="center"><p class="tent"><b>&nbsp;</b></p></th></tr><tr valign="top"><td align="left"><p class="tent">0</p></td><td align="center"><p class="tent">A</p></td><td align="left"><p class="tent">17</p></td><td align="left"><p class="tent">R</p></td><td align="center"><p class="tent">34</p></td><td align="left"><p class="tent">i</p></td><td align="left"><p class="tent">51</p></td><td align="center"><p class="tent">z</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="center"><p class="tent">&nbsp;</p></td></tr><tr valign="top"><td align="left"><p class="tent">1</p></td><td align="center"><p class="tent">B</p></td><td align="left"><p class="tent">18</p></td><td align="left"><p class="tent">S</p></td><td align="center"><p class="tent">35</p></td><td align="left"><p class="tent">j</p></td><td align="left"><p class="tent">52</p></td><td align="center"><p class="tent">0</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="center"><p class="tent">&nbsp;</p></td></tr><tr valign="top"><td align="left"><p class="tent">2</p></td><td align="center"><p class="tent">C</p></td><td align="left"><p class="tent">19</p></td><td align="left"><p class="tent">T</p></td><td align="center"><p class="tent">36</p></td><td align="left"><p class="tent">k</p></td><td align="left"><p class="tent">53</p></td><td align="center"><p class="tent">1</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="center"><p class="tent">&nbsp;</p></td></tr><tr valign="top"><td align="left"><p class="tent">3</p></td><td align="center"><p class="tent">D</p></td><td align="left"><p class="tent">20</p></td><td align="left"><p class="tent">U</p></td><td align="center"><p class="tent">37</p></td><td align="left"><p class="tent">l</p></td><td align="left"><p class="tent">54</p></td><td align="center"><p class="tent">2</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="center"><p class="tent">&nbsp;</p></td></tr><tr valign="top"><td align="left"><p class="tent">4</p></td><td align="center"><p class="tent">E</p></td><td align="left"><p class="tent">21</p></td><td align="left"><p class="tent">V</p></td><td align="center"><p class="tent">38</p></td><td align="left"><p class="tent">m</p></td><td align="left"><p class="tent">55</p></td><td align="center"><p class="tent">3</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="center"><p class="tent">&nbsp;</p></td></tr><tr valign="top"><td align="left"><p class="tent">5</p></td><td align="center"><p class="tent">F</p></td><td align="left"><p class="tent">22</p></td><td align="left"><p class="tent">W</p></td><td align="center"><p class="tent">39</p></td><td align="left"><p class="tent">n</p></td><td align="left"><p class="tent">56</p></td><td align="center"><p class="tent">4</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="center"><p class="tent">&nbsp;</p></td></tr><tr valign="top"><td align="left"><p class="tent">6</p></td><td align="center"><p class="tent">G</p></td><td align="left"><p class="tent">23</p></td><td align="left"><p class="tent">X</p></td><td align="center"><p class="tent">40</p></td><td align="left"><p class="tent">o</p></td><td align="left"><p class="tent">57</p></td><td align="center"><p class="tent">5</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="center"><p class="tent">&nbsp;</p></td></tr><tr valign="top"><td align="left"><p class="tent">7</p></td><td align="center"><p class="tent">H</p></td><td align="left"><p class="tent">24</p></td><td align="left"><p class="tent">Y</p></td><td align="center"><p class="tent">41</p></td><td align="left"><p class="tent">p</p></td><td align="left"><p class="tent">58</p></td><td align="center"><p class="tent">6</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="left"><p class="tent">&nbsp;</p></td><td align="center"><p class="tent">&nbsp;</p></td></tr><tr valign="top"><td align="left"><p class="tent">8</p></td><td align="center"><p class="tent">I</p></td><td align="left"><p class="tent">25</p></td><td align="left"><p class="tent">Z</p></td><td align="center"><p class="tent">42</p></td><td align="left"><p class="tent">q</p></td><td align="left"><p class="tent">59</p></td><td align="center"><p class="tent">7</p></td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -