<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Myers &#8211; Blog Sketch</title>
	<atom:link href="https://blog.ziaowang.top/tag/myers/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.ziaowang.top</link>
	<description></description>
	<lastBuildDate>Wed, 24 Sep 2025 04:43:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.5</generator>
	<item>
		<title>diff 工具和 diff 算法</title>
		<link>https://blog.ziaowang.top/2025/09/24/diff-and-patch/</link>
					<comments>https://blog.ziaowang.top/2025/09/24/diff-and-patch/#respond</comments>
		
		<dc:creator><![CDATA[wponaws]]></dc:creator>
		<pubDate>Wed, 24 Sep 2025 04:41:58 +0000</pubDate>
				<category><![CDATA[技术笔记]]></category>
		<category><![CDATA[diff-patch]]></category>
		<category><![CDATA[Myers]]></category>
		<guid isPermaLink="false">http://localhost/mysite/?p=7250</guid>

					<description><![CDATA[<h2 class="wp-block-heading">diff 和 patch 工具的使用</h2>



<h3 class="wp-block-heading">双文件 diff 和 patch</h3>



<p>很多 shell 或者版本控制系统都内置 diff 工具，用来逐行对比两个或多个文件。以最常用的两个文件 diff 为示例。【例子1】按下图创造 a.txt 和 b.txt 两个文件，运行 shell 内置的 diff 工具： <code>diff a.txt b.txt</code>，会输出如下的 diff：&#8230;</p>]]></description>
										<content:encoded><![CDATA[<h2 class="wp-block-heading">diff 和 patch 工具的使用</h2>



<h3 class="wp-block-heading">双文件 diff 和 patch</h3>



<p>很多 shell 或者版本控制系统都内置 diff 工具，用来逐行对比两个或多个文件。以最常用的两个文件 diff 为示例。【例子1】按下图创造 a.txt 和 b.txt 两个文件，运行 shell 内置的 diff 工具： <code>diff a.txt b.txt</code>，会输出如下的 diff：&hellip;</p>]]></content:encoded>
					
					<wfw:commentRss>https://blog.ziaowang.top/2025/09/24/diff-and-patch/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
