<?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_diff</id>
		<title>32v 1m diff - 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_diff"/>
		<link rel="alternate" type="text/html" href="https://gunkies.org/w/index.php?title=32v_1m_diff&amp;action=history"/>
		<updated>2026-05-11T23:47: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_diff&amp;diff=6955&amp;oldid=prev</id>
		<title>Neozeed: New page: DIFF(1)             UNIX Programmer's Manual              DIFF(1)    == NAME ==       diff - differential file comparator  == SYNOPSIS ==      diff [ -efbh ] file1 file2  == DESCRIPTION ==...</title>
		<link rel="alternate" type="text/html" href="https://gunkies.org/w/index.php?title=32v_1m_diff&amp;diff=6955&amp;oldid=prev"/>
				<updated>2009-10-26T13:50:36Z</updated>
		
		<summary type="html">&lt;p&gt;New page: DIFF(1)             UNIX Programmer&amp;#039;s Manual              DIFF(1)    == NAME ==       diff - differential file comparator  == SYNOPSIS ==      diff [ -efbh ] file1 file2  == DESCRIPTION ==...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;DIFF(1)             UNIX Programmer's Manual              DIFF(1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== NAME == &lt;br /&gt;
     diff - differential file comparator&lt;br /&gt;
&lt;br /&gt;
== SYNOPSIS ==&lt;br /&gt;
     diff [ -efbh ] file1 file2&lt;br /&gt;
&lt;br /&gt;
== DESCRIPTION ==&lt;br /&gt;
     _D_i_f_f tells what lines must be changed in two files to bring&lt;br /&gt;
     them into agreement.  If _f_i_l_e_1 (_f_i_l_e_2) is `-', the standard&lt;br /&gt;
     input is used.  If _f_i_l_e_1 (_f_i_l_e_2) is a directory, then a file&lt;br /&gt;
     in that directory whose file-name is the same as the file-&lt;br /&gt;
     name of _f_i_l_e_2 (_f_i_l_e_1) is used.  The normal output contains&lt;br /&gt;
     lines of these forms:&lt;br /&gt;
&lt;br /&gt;
          _n_1 a _n_3,_n_4&lt;br /&gt;
          _n_1,_n_2 d _n_3&lt;br /&gt;
          _n_1,_n_2 c _n_3,_n_4&lt;br /&gt;
&lt;br /&gt;
     These lines resemble _e_d commands to convert _f_i_l_e_1 into&lt;br /&gt;
     _f_i_l_e_2.  The numbers after the letters pertain to _f_i_l_e_2.  In&lt;br /&gt;
     fact, by exchanging `a' for `d' and reading backward one may&lt;br /&gt;
     ascertain equally how to convert _f_i_l_e_2 into _f_i_l_e_1.  As in&lt;br /&gt;
     _e_d, identical pairs where _n_1 = _n_2 or _n_3 = _n_4 are abbreviated&lt;br /&gt;
     as a single number.&lt;br /&gt;
&lt;br /&gt;
     Following each of these lines come all the lines that are&lt;br /&gt;
     affected in the first file flagged by `&amp;lt;', then all the&lt;br /&gt;
     lines that are affected in the second file flagged by `&amp;gt;'.&lt;br /&gt;
&lt;br /&gt;
     The -b option causes trailing blanks (spaces and tabs) to be&lt;br /&gt;
     ignored and other strings of blanks to compare equal.&lt;br /&gt;
&lt;br /&gt;
     The -e option produces a script of _a, _c and _d commands for&lt;br /&gt;
     the editor _e_d, which will recreate _f_i_l_e_2 from _f_i_l_e_1.  The -f&lt;br /&gt;
     option produces a similar script, not useful with _e_d, in the&lt;br /&gt;
     opposite order.  In connection with -e, the following shell&lt;br /&gt;
     program may help maintain multiple versions of a file.  Only&lt;br /&gt;
     an ancestral file ($1) and a chain of version-to-version _e_d&lt;br /&gt;
     scripts ($2,$3,...) made by _d_i_f_f need be on hand.  A `latest&lt;br /&gt;
     version' appears on the standard output.&lt;br /&gt;
&lt;br /&gt;
          (shift; cat $*; echo '1,$p') | ed - $1&lt;br /&gt;
&lt;br /&gt;
     Except in rare circumstances, _d_i_f_f finds a smallest suffi-&lt;br /&gt;
     cient set of file differences.&lt;br /&gt;
&lt;br /&gt;
     Option -h does a fast, half-hearted job.  It works only when&lt;br /&gt;
     changed stretches are short and well separated, but does&lt;br /&gt;
     work on files of unlimited length.  Options -e and -f are&lt;br /&gt;
     unavailable with -h.&lt;br /&gt;
&lt;br /&gt;
== FILES ==&lt;br /&gt;
     /tmp/d?????&lt;br /&gt;
     /usr/lib/diffh for -h&lt;br /&gt;
&lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
     [[32v 1m cmp|cmp(1)]], [[32v 1m comm|comm(1)]], [[32v 1m ed|ed(1)]]&lt;br /&gt;
&lt;br /&gt;
== DIAGNOSTICS ==&lt;br /&gt;
     Exit status is 0 for no differences, 1 for some, 2 for trou-&lt;br /&gt;
     ble.&lt;br /&gt;
&lt;br /&gt;
== BUGS ==&lt;br /&gt;
     Editing scripts produced under the -e or -f option are naive&lt;br /&gt;
     about creating lines consisting of a single `.'.&lt;br /&gt;
&lt;br /&gt;
[[Category:32v man section 1]]&lt;/div&gt;</summary>
		<author><name>Neozeed</name></author>	</entry>

	</feed>