ivaneeo's blog

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

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            669 Posts :: 0 Stories :: 64 Comments :: 0 Trackbacks
          并排(side-by-side)格式雖然對于創(chuàng)建源代碼補丁來說沒有什么用處,但是用它直接比較源代碼文件比較容易,因為它把srcfile和dstfile的內(nèi)容并排顯示在屏幕上.
          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里.字符"|"標(biāo)記出兩個文件不相同的行.
          posted on 2005-08-04 17:22 ivaneeo 閱讀(275) 評論(0)  編輯  收藏 所屬分類: GNU牛力
          主站蜘蛛池模板: 海丰县| 六安市| 四会市| 安丘市| 合作市| 武城县| 双江| 许昌市| 大姚县| 河北区| 北京市| 卫辉市| 巴东县| 铅山县| 大悟县| 柘城县| 那坡县| 嵊泗县| 政和县| 永清县| 普陀区| 黄陵县| 灌云县| 陕西省| 炉霍县| 海林市| 永福县| 鄂托克前旗| 高陵县| 上蔡县| 云和县| 雷波县| 于田县| 枣强县| 安丘市| 威海市| 栾川县| 名山县| 嘉鱼县| 贵港市| 双流县|