<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://gunkies.org/index.php?action=history&amp;feed=atom&amp;title=32v_1m_ed</id>
		<title>32v 1m ed - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://gunkies.org/index.php?action=history&amp;feed=atom&amp;title=32v_1m_ed"/>
		<link rel="alternate" type="text/html" href="https://gunkies.org/w/index.php?title=32v_1m_ed&amp;action=history"/>
		<updated>2026-05-06T05:54:51Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.1</generator>

	<entry>
		<id>https://gunkies.org/w/index.php?title=32v_1m_ed&amp;diff=6962&amp;oldid=prev</id>
		<title>Neozeed: /* SEE ALSO */</title>
		<link rel="alternate" type="text/html" href="https://gunkies.org/w/index.php?title=32v_1m_ed&amp;diff=6962&amp;oldid=prev"/>
				<updated>2009-10-26T14:00:54Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;SEE ALSO&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:00, 26 October 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l384&quot; &gt;Line 384:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 384:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160;  _t_o_r&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160;  _t_o_r&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160;  B. W. Kernighan, _A_d_v_a_n_c_e_d _e_d_i_t_i_n_g _o_n _U_N_I_X&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160;  B. W. Kernighan, _A_d_v_a_n_c_e_d _e_d_i_t_i_n_g _o_n _U_N_I_X&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160;  sed(1), crypt(1)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160;  &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[32v 1m sed|&lt;/ins&gt;sed(1)&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[32v 1m crypt|&lt;/ins&gt;crypt(1)&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== DIAGNOSTICS ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== DIAGNOSTICS ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki-wiki_:diff:version:1.11a:oldid:6961:newid:6962 --&gt;
&lt;/table&gt;</summary>
		<author><name>Neozeed</name></author>	</entry>

	<entry>
		<id>https://gunkies.org/w/index.php?title=32v_1m_ed&amp;diff=6961&amp;oldid=prev</id>
		<title>Neozeed: New page: ED(1)               UNIX Programmer's Manual                ED(1)    == NAME ==      ed - text editor  == SYNOPSIS ==      ed [ - ] [ -x ] [ name ]  == DESCRIPTION ==      _E_d is the stan...</title>
		<link rel="alternate" type="text/html" href="https://gunkies.org/w/index.php?title=32v_1m_ed&amp;diff=6961&amp;oldid=prev"/>
				<updated>2009-10-26T14:00:23Z</updated>
		
		<summary type="html">&lt;p&gt;New page: ED(1)               UNIX Programmer&amp;#039;s Manual                ED(1)    == NAME ==      ed - text editor  == SYNOPSIS ==      ed [ - ] [ -x ] [ name ]  == DESCRIPTION ==      _E_d is the stan...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;ED(1)               UNIX Programmer's Manual                ED(1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== NAME ==&lt;br /&gt;
     ed - text editor&lt;br /&gt;
&lt;br /&gt;
== SYNOPSIS ==&lt;br /&gt;
     ed [ - ] [ -x ] [ name ]&lt;br /&gt;
&lt;br /&gt;
== DESCRIPTION ==&lt;br /&gt;
     _E_d is the standard text editor.&lt;br /&gt;
&lt;br /&gt;
     If a _n_a_m_e argument is given, _e_d simulates an _e command (see&lt;br /&gt;
     below) on the named file; that is to say, the file is read&lt;br /&gt;
     into _e_d'_s buffer so that it can be edited.  If -x is&lt;br /&gt;
     present, an _x command is simulated first to handle an&lt;br /&gt;
     encrypted file.  The optional - suppresses the printing of&lt;br /&gt;
     character counts by _e, _r, and _w commands.&lt;br /&gt;
&lt;br /&gt;
     _E_d operates on a copy of any file it is editing; changes&lt;br /&gt;
     made in the copy have no effect on the file until a _w&lt;br /&gt;
     (write) command is given.  The copy of the text being edited&lt;br /&gt;
     resides in a temporary file called the _b_u_f_f_e_r.&lt;br /&gt;
&lt;br /&gt;
     Commands to _e_d have a simple and regular structure: zero or&lt;br /&gt;
     more _a_d_d_r_e_s_s_e_s followed by a single character _c_o_m_m_a_n_d, pos-&lt;br /&gt;
     sibly followed by parameters to the command.  These&lt;br /&gt;
     addresses specify one or more lines in the buffer.  Missing&lt;br /&gt;
     addresses are supplied by default.&lt;br /&gt;
&lt;br /&gt;
     In general, only one command may appear on a line.  Certain&lt;br /&gt;
     commands allow the addition of text to the buffer.  While _e_d&lt;br /&gt;
     is accepting text, it is said to be in _i_n_p_u_t _m_o_d_e. In this&lt;br /&gt;
     mode, no commands are recognized; all input is merely col-&lt;br /&gt;
     lected.  Input mode is left by typing a period `.' alone at&lt;br /&gt;
     the beginning of a line.&lt;br /&gt;
&lt;br /&gt;
     _E_d supports a limited form of _r_e_g_u_l_a_r _e_x_p_r_e_s_s_i_o_n notation.&lt;br /&gt;
     A regular expression specifies a set of strings of charac-&lt;br /&gt;
     ters.  A member of this set of strings is said to be _m_a_t_c_h_e_d&lt;br /&gt;
     by the regular expression.  In the following specification&lt;br /&gt;
     for regular expressions the word `character' means any char-&lt;br /&gt;
     acter but newline.&lt;br /&gt;
&lt;br /&gt;
     1.   Any character except a special character matches&lt;br /&gt;
          itself.  Special characters are the regular expression&lt;br /&gt;
          delimiter plus \[.  and sometimes ^*$.&lt;br /&gt;
&lt;br /&gt;
     2.   A . matches any character.&lt;br /&gt;
&lt;br /&gt;
     3.   A \ followed by any character except a digit or ()&lt;br /&gt;
          matches that character.&lt;br /&gt;
&lt;br /&gt;
     4.   A nonempty string _s bracketed [_s] (or [^_s]) matches any&lt;br /&gt;
          character in (or not in) _s. In _s, \ has no special&lt;br /&gt;
          meaning, and ] may only appear as the first letter.  A&lt;br /&gt;
          substring _a-_b, with _a and _b in ascending ASCII order,&lt;br /&gt;
          stands for the inclusive range of ASCII characters.&lt;br /&gt;
&lt;br /&gt;
     5.   A regular expression of form 1-4 followed by * matches&lt;br /&gt;
          a sequence of 0 or more matches of the regular expres-&lt;br /&gt;
          sion.&lt;br /&gt;
&lt;br /&gt;
     6.   A regular expression, _x, of form 1-8, bracketed \(_x\)&lt;br /&gt;
          matches what _x matches.&lt;br /&gt;
&lt;br /&gt;
     7.   A \ followed by a digit _n matches a copy of the string&lt;br /&gt;
          that the bracketed regular expression beginning with&lt;br /&gt;
          the _nth \( matched.&lt;br /&gt;
&lt;br /&gt;
     8.   A regular expression of form 1-8, _x, followed by a reg-&lt;br /&gt;
          ular expression of form 1-7, _y matches a match for _x&lt;br /&gt;
          followed by a match for _y, with the _x match being as&lt;br /&gt;
          long as possible while still permitting a _y match.&lt;br /&gt;
&lt;br /&gt;
     9.   A regular expression of form 1-8 preceded by ^ (or fol-&lt;br /&gt;
          lowed by $), is constrained to matches that begin at&lt;br /&gt;
          the left (or end at the right) end of a line.&lt;br /&gt;
&lt;br /&gt;
     10.  A regular expression of form 1-9 picks out the longest&lt;br /&gt;
          among the leftmost matches in a line.&lt;br /&gt;
&lt;br /&gt;
     11.  An empty regular expression stands for a copy of the&lt;br /&gt;
          last regular expression encountered.&lt;br /&gt;
&lt;br /&gt;
     Regular expressions are used in addresses to specify lines&lt;br /&gt;
     and in one command (see _s below) to specify a portion of a&lt;br /&gt;
     line which is to be replaced.  If it is desired to use one&lt;br /&gt;
     of the regular expression metacharacters as an ordinary&lt;br /&gt;
     character, that character may be preceded by `\'.  This also&lt;br /&gt;
     applies to the character bounding the regular expression&lt;br /&gt;
     (often `/') and to `\' itself.&lt;br /&gt;
&lt;br /&gt;
     To understand addressing in _e_d it is necessary to know that&lt;br /&gt;
     at any time there is a _c_u_r_r_e_n_t _l_i_n_e. Generally speaking, the&lt;br /&gt;
     current line is the last line affected by a command; how-&lt;br /&gt;
     ever, the exact effect on the current line is discussed&lt;br /&gt;
     under the description of the command.  Addresses are con-&lt;br /&gt;
     structed as follows.&lt;br /&gt;
&lt;br /&gt;
     1.   The character `.' addresses the current line.&lt;br /&gt;
&lt;br /&gt;
     2.   The character `$' addresses the last line of the&lt;br /&gt;
          buffer.&lt;br /&gt;
&lt;br /&gt;
     3.   A decimal number _n addresses the _n-th line of the&lt;br /&gt;
          buffer.&lt;br /&gt;
&lt;br /&gt;
     4.   `'_x' addresses the line marked with the name _x, which&lt;br /&gt;
          must be a lower-case letter.  Lines are marked with the&lt;br /&gt;
          _k command described below.&lt;br /&gt;
&lt;br /&gt;
     5.   A regular expression enclosed in slashes `/' addresses&lt;br /&gt;
          the line found by searching forward from the current&lt;br /&gt;
          line and stopping at the first line containing a string&lt;br /&gt;
          that matches the regular expression.  If necessary the&lt;br /&gt;
          search wraps around to the beginning of the buffer.&lt;br /&gt;
&lt;br /&gt;
     6.   A regular expression enclosed in queries `?' addresses&lt;br /&gt;
          the line found by searching backward from the current&lt;br /&gt;
          line and stopping at the first line containing a string&lt;br /&gt;
          that matches the regular expression.  If necessary the&lt;br /&gt;
          search wraps around to the end of the buffer.&lt;br /&gt;
&lt;br /&gt;
     7.   An address followed by a plus sign `+' or a minus sign&lt;br /&gt;
          `-' followed by a decimal number specifies that address&lt;br /&gt;
          plus (resp. minus) the indicated number of lines.  The&lt;br /&gt;
          plus sign may be omitted.&lt;br /&gt;
&lt;br /&gt;
     8.   If an address begins with `+' or `-' the addition or&lt;br /&gt;
          subtraction is taken with respect to the current line;&lt;br /&gt;
          e.g. `-5' is understood to mean `.-5'.&lt;br /&gt;
&lt;br /&gt;
     9.   If an address ends with `+' or `-', then 1 is added&lt;br /&gt;
          (resp. subtracted).  As a consequence of this rule and&lt;br /&gt;
          rule 8, the address `-' refers to the line before the&lt;br /&gt;
          current line.  Moreover, trailing `+' and `-' charac-&lt;br /&gt;
          ters have cumulative effect, so `--' refers to the&lt;br /&gt;
          current line less 2.&lt;br /&gt;
&lt;br /&gt;
     10.  To maintain compatibility with earlier versions of the&lt;br /&gt;
          editor, the character `^' in addresses is equivalent to&lt;br /&gt;
          `-'.&lt;br /&gt;
&lt;br /&gt;
     Commands may require zero, one, or two addresses.  Commands&lt;br /&gt;
     which require no addresses regard the presence of an address&lt;br /&gt;
     as an error.  Commands which accept one or two addresses&lt;br /&gt;
     assume default addresses when insufficient are given.  If&lt;br /&gt;
     more addresses are given than such a command requires, the&lt;br /&gt;
     last one or two (depending on what is accepted) are used.&lt;br /&gt;
&lt;br /&gt;
     Addresses are separated from each other typically by a comma&lt;br /&gt;
     `,'.  They may also be separated by a semicolon `;'.  In&lt;br /&gt;
     this case the current line `.' is set to the previous&lt;br /&gt;
     address before the next address is interpreted.  This&lt;br /&gt;
     feature can be used to determine the starting line for for-&lt;br /&gt;
     ward and backward searches (`/', `?').  The second address&lt;br /&gt;
     of any two-address sequence must correspond to a line fol-&lt;br /&gt;
     lowing the line corresponding to the first address.&lt;br /&gt;
&lt;br /&gt;
     In the following list of _e_d commands, the default addresses&lt;br /&gt;
     are shown in parentheses.  The parentheses are not part of&lt;br /&gt;
     the address, but are used to show that the given addresses&lt;br /&gt;
     are the default.&lt;br /&gt;
&lt;br /&gt;
     As mentioned, it is generally illegal for more than one com-&lt;br /&gt;
     mand to appear on a line.  However, most commands may be&lt;br /&gt;
     suffixed by `p' or by `l', in which case the current line is&lt;br /&gt;
     either printed or listed respectively in the way discussed&lt;br /&gt;
     below.&lt;br /&gt;
&lt;br /&gt;
     (.)a&lt;br /&gt;
     &amp;lt;text&amp;gt;&lt;br /&gt;
     .&lt;br /&gt;
          The append command reads the given text and appends it&lt;br /&gt;
          after the addressed line.  `.' is left on the last line&lt;br /&gt;
          input, if there were any, otherwise at the addressed&lt;br /&gt;
          line.  Address `0' is legal for this command; text is&lt;br /&gt;
          placed at the beginning of the buffer.&lt;br /&gt;
&lt;br /&gt;
     (., .)c&lt;br /&gt;
     &amp;lt;text&amp;gt;&lt;br /&gt;
     .&lt;br /&gt;
          The change command deletes the addressed lines, then&lt;br /&gt;
          accepts input text which replaces these lines.  `.' is&lt;br /&gt;
          left at the last line input; if there were none, it is&lt;br /&gt;
          left at the line preceding the deleted lines.&lt;br /&gt;
&lt;br /&gt;
     (., .)d&lt;br /&gt;
          The delete command deletes the addressed lines from the&lt;br /&gt;
          buffer.  The line originally after the last line&lt;br /&gt;
          deleted becomes the current line; if the lines deleted&lt;br /&gt;
          were originally at the end, the new last line becomes&lt;br /&gt;
          the current line.&lt;br /&gt;
&lt;br /&gt;
     e filename&lt;br /&gt;
          The edit command causes the entire contents of the&lt;br /&gt;
          buffer to be deleted, and then the named file to be&lt;br /&gt;
          read in.  `.' is set to the last line of the buffer.&lt;br /&gt;
          The number of characters read is typed.  `filename' is&lt;br /&gt;
          remembered for possible use as a default file name in a&lt;br /&gt;
          subsequent _r or _w command.  If `filename' is missing,&lt;br /&gt;
          the remembered name is used.&lt;br /&gt;
&lt;br /&gt;
     E filename&lt;br /&gt;
          This command is the same as _e, except that no diagnos-&lt;br /&gt;
          tic results when no _w has been given since the last&lt;br /&gt;
          buffer alteration.&lt;br /&gt;
&lt;br /&gt;
     f filename&lt;br /&gt;
          The filename command prints the currently remembered&lt;br /&gt;
          file name.  If `filename' is given, the currently&lt;br /&gt;
          remembered file name is changed to `filename'.&lt;br /&gt;
&lt;br /&gt;
     (1,$)g/regular expression/command list&lt;br /&gt;
          In the global command, the first step is to mark every&lt;br /&gt;
          line which matches the given regular expression.  Then&lt;br /&gt;
          for every such line, the given command list is executed&lt;br /&gt;
          with `.' initially set to that line.  A single command&lt;br /&gt;
          or the first of multiple commands appears on the same&lt;br /&gt;
          line with the global command.  All lines of a multi-&lt;br /&gt;
          line list except the last line must be ended with `\'.&lt;br /&gt;
          _A, _i, and _c commands and associated input are permit-&lt;br /&gt;
          ted; the `.' terminating input mode may be omitted if&lt;br /&gt;
          it would be on the last line of the command list.  The&lt;br /&gt;
          commands _g and _v are not permitted in the command list.&lt;br /&gt;
&lt;br /&gt;
     (.)i&lt;br /&gt;
&lt;br /&gt;
     &amp;lt;text&amp;gt;&lt;br /&gt;
     .&lt;br /&gt;
          This command inserts the given text before the&lt;br /&gt;
          addressed line.  `.' is left at the last line input,&lt;br /&gt;
          or, if there were none, at the line before the&lt;br /&gt;
          addressed line.  This command differs from the _a com-&lt;br /&gt;
          mand only in the placement of the text.&lt;br /&gt;
&lt;br /&gt;
     (., .+1)j&lt;br /&gt;
          This command joins the addressed lines into a single&lt;br /&gt;
          line; intermediate newlines simply disappear.  `.' is&lt;br /&gt;
          left at the resulting line.&lt;br /&gt;
&lt;br /&gt;
     ( . )k_x&lt;br /&gt;
          The mark command marks the addressed line with name _x,&lt;br /&gt;
          which must be a lower-case letter.  The address form&lt;br /&gt;
          `'_x' then addresses this line.&lt;br /&gt;
&lt;br /&gt;
     (., .)l&lt;br /&gt;
          The list command prints the addressed lines in an unam-&lt;br /&gt;
          biguous way: non-graphic characters are printed in&lt;br /&gt;
          two-digit octal, and long lines are folded.  The _l com-&lt;br /&gt;
          mand may be placed on the same line after any non-i/o&lt;br /&gt;
          command.&lt;br /&gt;
&lt;br /&gt;
     (., .)m_a&lt;br /&gt;
          The move command repositions the addressed lines after&lt;br /&gt;
          the line addressed by _a.  The last of the moved lines&lt;br /&gt;
          becomes the current line.&lt;br /&gt;
&lt;br /&gt;
     (., .)p&lt;br /&gt;
          The print command prints the addressed lines.  `.' is&lt;br /&gt;
          left at the last line printed.  The _p command may be&lt;br /&gt;
          placed on the same line after any non-i/o command.&lt;br /&gt;
&lt;br /&gt;
     (., .)P&lt;br /&gt;
          This command is a synonym for _p.&lt;br /&gt;
&lt;br /&gt;
     q    The quit command causes _e_d to exit.  No automatic write&lt;br /&gt;
          of a file is done.&lt;br /&gt;
&lt;br /&gt;
     Q    This command is the same as _q, except that no diagnos-&lt;br /&gt;
          tic results when no _w has been given since the last&lt;br /&gt;
          buffer alteration.&lt;br /&gt;
&lt;br /&gt;
     ($)r filename&lt;br /&gt;
          The read command reads in the given file after the&lt;br /&gt;
          addressed line.  If no file name is given, the remem-&lt;br /&gt;
          bered file name, if any, is used (see _e and _f com-&lt;br /&gt;
          mands).  The file name is remembered if there was no&lt;br /&gt;
          remembered file name already.  Address `0' is legal for&lt;br /&gt;
          _r and causes the file to be read at the beginning of&lt;br /&gt;
          the buffer.  If the read is successful, the number of&lt;br /&gt;
          characters read is typed.  `.' is left at the last line&lt;br /&gt;
          read in from the file.&lt;br /&gt;
&lt;br /&gt;
     ( ., .)s/regular expression/replacement/       or,&lt;br /&gt;
     ( ., .)s/regular expression/replacement/g&lt;br /&gt;
          The substitute command searches each addressed line for&lt;br /&gt;
          an occurrence of the specified regular expression.  On&lt;br /&gt;
          each line in which a match is found, all matched&lt;br /&gt;
          strings are replaced by the replacement specified, if&lt;br /&gt;
          the global replacement indicator `g' appears after the&lt;br /&gt;
          command.  If the global indicator does not appear, only&lt;br /&gt;
          the first occurrence of the matched string is replaced.&lt;br /&gt;
          It is an error for the substitution to fail on all&lt;br /&gt;
          addressed lines.  Any character other than space or&lt;br /&gt;
          new-line may be used instead of `/' to delimit the reg-&lt;br /&gt;
          ular expression and the replacement.  `.' is left at&lt;br /&gt;
          the last line substituted.&lt;br /&gt;
&lt;br /&gt;
          An ampersand `&amp;amp;' appearing in the replacement is&lt;br /&gt;
          replaced by the string matching the regular expression.&lt;br /&gt;
          The special meaning of `&amp;amp;' in this context may be&lt;br /&gt;
          suppressed by preceding it by `\'.  The characters `_\_n'&lt;br /&gt;
          where _n is a digit, are replaced by the text matched by&lt;br /&gt;
          the _n-th regular subexpression enclosed between `\('&lt;br /&gt;
          and `\)'.  When nested, parenthesized subexpressions&lt;br /&gt;
          are present, _n is determined by counting occurrences of&lt;br /&gt;
          `\(' starting from the left.&lt;br /&gt;
&lt;br /&gt;
          Lines may be split by substituting new-line characters&lt;br /&gt;
          into them.  The new-line in the replacement string must&lt;br /&gt;
          be escaped by preceding it by `\'.&lt;br /&gt;
&lt;br /&gt;
     (., .)t_a&lt;br /&gt;
          This command acts just like the _m command, except that&lt;br /&gt;
          a copy of the addressed lines is placed after address _a&lt;br /&gt;
          (which may be 0).  `.' is left on the last line of the&lt;br /&gt;
          copy.&lt;br /&gt;
&lt;br /&gt;
     (., .)u&lt;br /&gt;
          The undo command restores the preceding contents of the&lt;br /&gt;
          current line, which must be the last line in which a&lt;br /&gt;
          substitution was made.&lt;br /&gt;
&lt;br /&gt;
     (1, $)v/regular expression/command list&lt;br /&gt;
          This command is the same as the global command _g except&lt;br /&gt;
          that the command list is executed _g with `.' initially&lt;br /&gt;
          set to every line _e_x_c_e_p_t those matching the regular&lt;br /&gt;
          expression.&lt;br /&gt;
&lt;br /&gt;
     (1, $)w filename&lt;br /&gt;
          The write command writes the addressed lines onto the&lt;br /&gt;
          given file.  If the file does not exist, it is created&lt;br /&gt;
          mode 666 (readable and writable by everyone).  The file&lt;br /&gt;
          name is remembered if there was no remembered file name&lt;br /&gt;
          already.  If no file name is given, the remembered file&lt;br /&gt;
          name, if any, is used (see _e and _f commands).  `.' is&lt;br /&gt;
          unchanged.  If the command is successful, the number of&lt;br /&gt;
          characters written is printed.&lt;br /&gt;
&lt;br /&gt;
     (1,$)W filename&lt;br /&gt;
          This command is the same as _w, except that the&lt;br /&gt;
          addressed lines are appended to the file.&lt;br /&gt;
&lt;br /&gt;
     x    A key string is demanded from the standard input.&lt;br /&gt;
          Later _r, _e and _w commands will encrypt and decrypt the&lt;br /&gt;
          text with this key by the algorithm of _c_r_y_p_t(1).  An&lt;br /&gt;
          explicitly empty key turns off encryption.&lt;br /&gt;
&lt;br /&gt;
     ($)= The line number of the addressed line is typed.  `.' is&lt;br /&gt;
          unchanged by this command.&lt;br /&gt;
&lt;br /&gt;
     !&amp;lt;shell command&amp;gt;&lt;br /&gt;
          The remainder of the line after the `!' is sent to&lt;br /&gt;
          _s_h(1) to be interpreted as a command.  `.' is&lt;br /&gt;
          unchanged.&lt;br /&gt;
&lt;br /&gt;
     (.+1)&amp;lt;newline&amp;gt;&lt;br /&gt;
          An address alone on a line causes the addressed line to&lt;br /&gt;
          be printed.  A blank line alone is equivalent to&lt;br /&gt;
          `.+1p'; it is useful for stepping through text.&lt;br /&gt;
&lt;br /&gt;
     If an interrupt signal (ASCII DEL) is sent, _e_d prints a `?'&lt;br /&gt;
     and returns to its command level.&lt;br /&gt;
&lt;br /&gt;
     Some size limitations: 512 characters per line, 256 charac-&lt;br /&gt;
     ters per global command list, 64 characters per file name,&lt;br /&gt;
     and 128K characters in the temporary file.  The limit on the&lt;br /&gt;
     number of lines depends on the amount of core: each line&lt;br /&gt;
     takes 1 word.&lt;br /&gt;
&lt;br /&gt;
     When reading a file, _e_d discards ASCII NUL characters and&lt;br /&gt;
     all characters after the last newline.  It refuses to read&lt;br /&gt;
     files containing non-ASCII characters.&lt;br /&gt;
&lt;br /&gt;
== FILES ==&lt;br /&gt;
     /tmp/e*&lt;br /&gt;
     ed.hup: work is saved here if terminal hangs up&lt;br /&gt;
&lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
     B. W. Kernighan, _A _T_u_t_o_r_i_a_l _I_n_t_r_o_d_u_c_t_i_o_n _t_o _t_h_e _E_D _T_e_x_t _E_d_i_-&lt;br /&gt;
     _t_o_r&lt;br /&gt;
     B. W. Kernighan, _A_d_v_a_n_c_e_d _e_d_i_t_i_n_g _o_n _U_N_I_X&lt;br /&gt;
     sed(1), crypt(1)&lt;br /&gt;
&lt;br /&gt;
== DIAGNOSTICS ==&lt;br /&gt;
     `?name' for inaccessible file; `?' for errors in commands;&lt;br /&gt;
     `?TMP' for temporary file overflow.&lt;br /&gt;
&lt;br /&gt;
     To protect against throwing away valuable work, a _q or _e&lt;br /&gt;
     command is considered to be in error, unless a _w has&lt;br /&gt;
     occurred since the last buffer change.  A second _q or _e will&lt;br /&gt;
     be obeyed regardless.&lt;br /&gt;
&lt;br /&gt;
== BUGS ==&lt;br /&gt;
     The _l command mishandles DEL.&lt;br /&gt;
     A ! command cannot be subject to a _g command.&lt;br /&gt;
     Because 0 is an illegal address for a _w command, it is not&lt;br /&gt;
     possible to create an empty file with _e_d.&lt;br /&gt;
&lt;br /&gt;
[[Category:32v man section 1]]&lt;/div&gt;</summary>
		<author><name>Neozeed</name></author>	</entry>

	</feed>