标签:
杂谈 |
分类: 技术文章 |
在使用diff来比较文件差异时,有一个问题就是输出时颜色是一样的,很不容易分辨,这时可以考虑使用colordiff。
The Perl script colordiff is a wrapper for 'diff' and produces the same output but with pretty 'syntax' highlighting. Colour schemes can be customized.
cd /usr/ports/textproc/
make install clean
rehash
现在可以使用colordiff来用彩色输出来比较文件的差异了。
后一篇:UNIX 高手的几个习惯