ivaneeo's blog

          自由的力量,自由的生活。

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            669 Posts :: 0 Stories :: 64 Comments :: 0 Trackbacks
          并排(side-by-side)格式雖然對于創建源代碼補丁來說沒有什么用處,但是用它直接比較源代碼文件比較容易,因為它把srcfile和dstfile的內容并排顯示在屏幕上.
          ivan@debian $diff -y -W 80 hello.c howdy.c
          #include <stdio.h>                    #include <stdio.h>
                                           >    #include <stdlib.h>
          int main(void)                        int main(void)
          {                                     {
            char msg[] = "Hello, Linux pr  |       char msg[] = "Hello, Linux pr
                                                
            puts(msg);
            printf("Here you are, using d  |  printf("Here you are, using d
                                          
            return 0;                      |  exit(EXIT_SUCCESS);
          }

          字符">"表示該行在dstfile而不在srcfile里.類型地,字符"<"表示該行在srcfile而不在dstfile里.字符"|"標記出兩個文件不相同的行.
          posted on 2005-08-04 17:22 ivaneeo 閱讀(275) 評論(0)  編輯  收藏 所屬分類: GNU牛力
          主站蜘蛛池模板: 凤台县| 东海县| 平顶山市| 福鼎市| 保康县| 南召县| 迁西县| 甘孜县| 兴安盟| 建水县| 东丰县| 天台县| 诸城市| 公主岭市| 偏关县| 界首市| 肥东县| 广丰县| 庆元县| 读书| 阿拉尔市| 嵩明县| 湘潭市| 亚东县| 贵定县| 虞城县| 英超| 郧西县| 铁岭县| 罗甸县| 容城县| 河南省| 军事| 曲阜市| 宜川县| 依安县| 绥中县| 明光市| 同江市| 邢台市| 桦甸市|