{"id":2295,"date":"2019-05-28T00:02:09","date_gmt":"2019-05-27T16:02:09","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=2295"},"modified":"2019-05-30T15:11:56","modified_gmt":"2019-05-30T07:11:56","slug":"diffstat","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/diffstat","title":{"rendered":"diffstat\u547d\u4ee4 – \u663e\u793a\u7edf\u8ba1\u6570\u5b57"},"content":{"rendered":"\n
diffstat\u547d\u4ee4\u7528\u4e8e\u8bfb\u53d6diff\u7684\u8f93\u51fa\u7ed3\u679c\uff0c\u7136\u540e\u7edf\u8ba1\u5404\u6587\u4ef6\u7684\u63d2\u5165\uff0c\u5220\u9664\uff0c\u4fee\u6539\u7b49\u5dee\u5f02\u8ba1\u91cf \u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>diffstat [\u53c2\u6570] <\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u5c06\u76ee\u5f55”test1″\u548c”test2″\u4e0b\u7684\u540c\u540d\u6587\u4ef6”testf.txt”\u4f7f\u7528diff\u6307\u4ee4\u8fdb\u884c\u6bd4\u8f83\u3002\u7136\u540e\u4f7f\u7528diffstat\u6307\u4ee4\u5bf9\u7ed3\u679c\u8fdb\u884c\u7edf\u8ba1\u663e\u793a\uff1a<\/p>\n\n\n\n diffstat\u547d\u4ee4\u7528\u4e8e\u8bfb\u53d6diff\u7684\u8f93\u51fa\u7ed3\u679c\uff0c\u7136\u540e\u7edf\u8ba1\u5404\u6587\u4ef6\u7684\u63d2\u5165\uff0c\u5220\u9664\uff0c\u4fee\u6539\u7b49\u5dee\u5f02\u8ba1\u91cf \u3002 \u8bed\u6cd5\u683c\u5f0f\uff1adi […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2295"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=2295"}],"version-history":[{"count":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2295\/revisions"}],"predecessor-version":[{"id":2946,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2295\/revisions\/2946"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=2295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=2295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=2295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-n<\/td> \u6307\u5b9a\u6587\u4ef6\u540d\u957f\u5ea6\uff0c\u6307\u5b9a\u7684\u957f\u5ea6\u5fc5\u987b\u5927\u4e8e\u6216\u7b49\u4e8e\u6240\u6709\u6587\u4ef6\u4e2d\u6700\u957f\u7684\u6587\u4ef6\u540d <\/td><\/tr> -p<\/td> \u4e0e-n\u53c2\u6570\u76f8\u540c\uff0c\u4f46\u6b64\u5904\u7684<\u6587\u4ef6\u540d\u957f\u5ea6>\u5305\u62ec\u4e86\u6587\u4ef6\u7684\u8def\u5f84 <\/td><\/tr> -w <\/td> \u6307\u5b9a\u8f93\u51fa\u65f6\u680f\u4f4d\u7684\u5bbd\u5ea6 <\/td><\/tr> -V <\/td> \u663e\u793a\u7248\u672c\u4fe1\u606f <\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# diff test1 test2 | diffstat<\/pre>\n","protected":false},"excerpt":{"rendered":"