📄 ed.html
字号:
<td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">,</p></td><td align="left"><p class="tent">1</p></td><td align="left"><p class="tent">$</p></td><td align="left"><p class="tent">Historical</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">,7</p></td><td align="left"><p class="tent">1</p></td><td align="left"><p class="tent">7</p></td><td align="left"><p class="tent">Extension</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">,,</p></td><td align="left"><p class="tent">$</p></td><td align="left"><p class="tent">$</p></td><td align="left"><p class="tent">Extension</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">,;</p></td><td align="left"><p class="tent">$</p></td><td align="left"><p class="tent">$</p></td><td align="left"><p class="tent">Extension</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">7;</p></td><td align="left"><p class="tent">7</p></td><td align="left"><p class="tent">7</p></td><td align="left"><p class="tent">Historical</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">7;5;</p></td><td align="left"><p class="tent">5</p></td><td align="left"><p class="tent">5</p></td><td align="left"><p class="tent">Historical</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">7;5;9</p></td><td align="left"><p class="tent">5</p></td><td align="left"><p class="tent">9</p></td><td align="left"><p class="tent">Historical</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">7;5,9</p></td><td align="left"><p class="tent">5</p></td><td align="left"><p class="tent">9</p></td><td align="left"><p class="tent">Historical</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">7;$;4</p></td><td align="left"><p class="tent">$</p></td><td align="left"><p class="tent">4</p></td><td align="left"><p class="tent">Historical</p></td><td align="left"><p class="tent">Valid, but erroneous.</p></td></tr><tr valign="top"><td align="left"><p class="tent">7;9</p></td><td align="left"><p class="tent">7</p></td><td align="left"><p class="tent">9</p></td><td align="left"><p class="tent">Historical</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">7;+</p></td><td align="left"><p class="tent">7</p></td><td align="left"><p class="tent">8</p></td><td align="left"><p class="tent">Historical</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">;</p></td><td align="left"><p class="tent">.</p></td><td align="left"><p class="tent">$</p></td><td align="left"><p class="tent">Historical</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">;7</p></td><td align="left"><p class="tent">.</p></td><td align="left"><p class="tent">7</p></td><td align="left"><p class="tent">Extension</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">;;</p></td><td align="left"><p class="tent">$</p></td><td align="left"><p class="tent">$</p></td><td align="left"><p class="tent">Extension</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">;,</p></td><td align="left"><p class="tent">$</p></td><td align="left"><p class="tent">$</p></td><td align="left"><p class="tent">Extension</p></td><td align="left"><p class="tent"> </p></td></tr></table></center><p>Historically, values could be added to addresses by including them after one or more <blank>s; for example,<tt>"3 - 5p"</tt> wrote the seventh line of the file, and <tt>"/foo/ 5"</tt> was the same as <tt>"5 /foo/"</tt>. However, only absolute values could be added; for example, <tt>"5 /foo/"</tt> was an error. IEEE Std 1003.1-2001requires conformance to historical practice.</p><p>Historically, <i>ed</i> accepted the <tt>'^'</tt> character as an address, in which case it was identical to the hyphencharacter. IEEE Std 1003.1-2001 does not require or prohibit this behavior.</p></blockquote><h4><a name="tag_04_42_19"></a>FUTURE DIRECTIONS</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_04_42_20"></a>SEE ALSO</h4><blockquote><p><a href="xcu_chap01.html#tag_01_11"><i>Utility Description Defaults</i></a> , <a href="ex.html"><i>ex</i></a> , <a href="sed.html"><i>sed</i></a> , <a href="sh.html"><i>sh</i></a> , <a href="vi.html"><i>vi</i></a></p></blockquote><h4><a name="tag_04_42_21"></a>CHANGE HISTORY</h4><blockquote><p>First released in Issue 2.</p></blockquote><h4><a name="tag_04_42_22"></a>Issue 5</h4><blockquote><p>In the OPTIONS section, the meaning of <b>-s</b> and <b>-</b> is clarified.</p><p>A second FUTURE DIRECTION is added.</p></blockquote><h4><a name="tag_04_42_23"></a>Issue 6</h4><blockquote><p>The obsolescent single-minus form is removed.</p><p>A second APPLICATION USAGE note is added.</p><p>The Open Group Corrigendum U025/2 is applied, correcting the description of the Edit section.</p><p>The <i>ed</i> utility is updated to align with the IEEE P1003.2b draft standard. This includes addition of the treatment ofthe SIGQUIT signal, changes to <i>ed</i> addressing, and changes to processing when end-of-file is detected and when terminaldisconnect is detected.</p><p>The normative text is reworded to avoid use of the term "must" for application requirements.</p><p>IEEE Std 1003.1-2001/Cor 1-2002, item XCU/TC1/D6/22 is applied, adding the text: "Any line modified by the <i>commandlist</i> shall be unmarked." to the <b>G</b> command. This change corresponds to a similar change made to the <b>g</b> command inthe first version of IEEE Std 1003.1-2001.</p></blockquote><div class="box"><em>End of informative text.</em></div><hr><hr size="2" noshade><center><font size="2"><!--footer start-->UNIX ® is a registered Trademark of The Open Group.<br>POSIX ® is a registered Trademark of The IEEE.<br>[ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../functions/contents.html">XSH</a> | <a href="../xrat/contents.html">XRAT</a>]</font></center><!--footer end--><hr size="2" noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -