Tips Linux Explorers | ![]() |
All Things Linux Forum | ![]() |
Great Linux Links | ![]() |
LinuxClues.com | ![]() |
Hometown | ![]() |
CODE |
$ cd /home/bruno/test |
CODE |
$ diff colors1.txt colors2.txt 6c6 < # indigo --- > # indigo-blue 11d10 < # sienna 12a12 > # darkblue 15c15 < # tomato --- > # tomato-red |
CODE |
$ diff -u colors1.txt colors2.txt --- colors1.txt 2005-04-01 20:45:21.954828407 +0200 +++ colors2.txt 2005-04-01 20:44:50.152742422 +0200 @@ -3,13 +3,13 @@ # darkred # deeppink # firebrick -# indigo +# indigo-blue # limegreen # royalblue # sandybrown # seagreen -# sienna # silver +# darkblue # skyblue # teal -# tomato +# tomato-red |
CODE | ||
$ diff -y -W 70 colors1.txt colors2.txt
|
CODE |
$ cmp colors1.txt colors2.txt colors1.txt colors2.txt differ: byte 64, line 6 |
CODE |
$ cmp -l colors1.txt colors2.txt 64 12 55 65 43 142 66 40 154 67 154 165 68 151 145 69 155 12 70 145 43 71 147 40 72 162 154 73 145 151 74 145 155 <<--------------------- I did remove byte 75 to 140 to shorten it a bit ---------------------->> 141 43 153 142 40 171 143 164 142 144 145 154 145 141 165 146 154 145 151 157 145 152 155 141 153 141 154 154 164 12 155 157 43 156 12 40 cmp: EOF on colors1.txt |
Tips Linux Explorers | ![]() |
All Things Linux Forum | ![]() |
Great Linux Links | ![]() |
LinuxClues.com | ![]() |
Hometown | ![]() |