{"id":8614,"date":"2020-08-28T13:16:27","date_gmt":"2020-08-28T05:16:27","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8614"},"modified":"2020-08-28T13:16:27","modified_gmt":"2020-08-28T05:16:27","slug":"sdiff","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/sdiff","title":{"rendered":"sdiff\u547d\u4ee4 – \u4ee5\u5e76\u6392\u65b9\u5f0f\u5408\u5e76\u6587\u4ef6\u4e4b\u95f4\u7684\u5dee\u5f02"},"content":{"rendered":"\n
sdiff \u662f\u4e00\u4e2a\u7b80\u5355\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0csdiff \u547d\u4ee4\u4ee5\u5e76\u6392\u65b9\u5f0f\u5408\u5e76FILE1\u548cFILE2\u6587\u4ef6\u4e4b\u95f4\u7684\u5dee\u5f02\u3002\u5b83\u5f88\u5bb9\u6613\u4f7f\u7528\uff0c\u5e76\u5e26\u6709\u7b80\u5355\u7684\u4f7f\u7528\u9009\u9879\uff0c\u5bf9\u6bd4\u5f97\u51fa\u7ed3\u679c\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>sdiff [\u53c2\u6570] file1 file2<\/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 \u6bd4\u8f83\u4e8c\u4e2a\u6587\u4ef6\u7684\u4e0d\u540c\uff1a<\/p>\n\n\n\n \u5ffd\u7565\u5927\u5c0f\u5199\u7684\u533a\u522b\uff1a<\/p>\n\n\n\n \u5ffd\u7565\u4efb\u4f55\u56e0\u7a7a\u884c\u800c\u9020\u6210\u7684\u5dee\u5f02\uff1a<\/p>\n\n\n\n sdiff \u662f\u4e00\u4e2a\u7b80\u5355\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0csdiff \u547d\u4ee4\u4ee5\u5e76\u6392\u65b9\u5f0f\u5408\u5e76FILE1\u548cFILE2\u6587\u4ef6\u4e4b\u95f4\u7684\u5dee\u5f02\u3002\u5b83\u5f88\u5bb9 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8614"}],"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=8614"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8614\/revisions"}],"predecessor-version":[{"id":8619,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8614\/revisions\/8619"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-o file<\/td> \u4e92\u52a8\u5f0f\u64cd\u4f5c\uff0c\u5e76\u5c06\u7ed3\u679c\u5199\u5165\u5230\u6587\u4ef6\u4e2d<\/td><\/tr> -i<\/td> \u5ffd\u7565\u5927\u5c0f\u5199\u7684\u533a\u522b<\/td><\/tr> -E<\/td> \u5ffd\u7565\u7531\u5236\u8868\u7b26\u5bbd\u5ea6\u9020\u6210\u7684\u5dee\u5f02<\/td><\/tr> -b<\/td> \u5ffd\u7565\u7531\u7a7a\u683c\u6570\u4e0d\u540c\u9020\u6210\u7684\u5dee\u5f02<\/td><\/tr> -W<\/td> \u5ffd\u7565\u6240\u6709\u7a7a\u767d\u5b57\u7b26<\/td><\/tr> -B<\/td> \u5ffd\u7565\u4efb\u4f55\u56e0\u7a7a\u884c\u800c\u9020\u6210\u7684\u5dee\u5f02<\/td><\/tr> -a<\/td> \u6240\u6709\u6587\u4ef6\u90fd\u4ee5\u6587\u672c\u65b9\u5f0f\u5904\u7406<\/td><\/tr> -l<\/td> \u5f53\u6709\u4e24\u884c\u76f8\u540c\u65f6\u53ea\u663e\u793a\u5de6\u680f\u7684\u4e00\u884c<\/td><\/tr> -t<\/td> \u5c06\u8f93\u51fa\u4e2d\u7684 tab \u8f6c\u6362\u6210\u7a7a\u683c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# sdiff -a file1 file2<\/pre>\n\n\n\n
[root@linuxcool ~]# sdiff -i file1 file2<\/pre>\n\n\n\n
[root@linuxcool ~]# sdiff -B file1 file2<\/pre>\n","protected":false},"excerpt":{"rendered":"