Diff, Patch, and Friends(diff, patch和他们的相关工具)(第二篇)

原文 http://www.linuxjournal.com/article/1237 翻译: www.ykyi.net zausiu 接上篇 Use the diff program to avoid eyestrain and insanity: 使用diff程序来避免会令人发疯的肉眼查找。 diff -u 1 2 — 1 Sat Apr 20 22:11:53 1996 +++ 2 Sat Apr 20 22:12:01 1996 -1,9 +1,9 Ecce Eduardus Ursus scalis nunc tump-tump-tump occipite gradus pulsante post Christophorum Robinum descendens. Est quod sciat unus et solus -modus gradibus desendendi, non nunquam autem +modus gradibus descendendi, nonnunquam autem sentit, etiam alterum modum exstare, dummodo -pulsationibus desinere et de no modo meditari +pulsationibus desinere et de eo modo meditari possit. Deinde censet alios modos non esse. En, nunc ipse in imo est, vobis ostentari paratus. Winnie ille Pu. ...

September 2, 2011 · 4 min · kamus

Diff, Patch, and Friends(diff, patch和他们的相关工具)(第一篇)

原文 http://www.linuxjournal.com/article/1237 翻译: ykyi.net “Kernel patches” may sound like magic, but the two tools used to create and apply patches are simple and easy to use—if they weren’t, some Linux developers would be too lazy to use them… “内核补丁"听起来相当之神奇,但是有两个用来创建补丁和应用补丁的工具却简单易用。如果它们很难用的话,一些Linux开发者才懒得用它们呢。 Diff is designed to show you the differences between files, line by line. It is fundamentally simple to use, but takes a little practice. Don’t let the length of this article scare you; you can get some use out of diff by reading only the first page or two. The rest of the article is for those who aren’t satisfied with very basic uses. diff这个工具设计成可以向你展示文件之间行与行的区别。它使用起来是相当的简单,但需要一点练习才习。你千万不要让长长的介绍文档把你吓住。你可以先只读前一两页文档,这样你就可以使用diff来开展一些工作了。余下的diff介绍文档是写给那些对基本用法非常不满的奇异人士的。 http://ykyi.net ...

February 12, 2011 · 3 min · kamus