diff和sdiff使用心得
来源:互联网 发布:淘宝客活动可以取消吗 编辑:程序博客网 时间:2024/06/13 09:14
在Linux下,有很多个文档比较工具,diff,sdiff, comm, cmp等。整体来说都不是很好用。
相对而言,还是sdiff功能比较强大一些。
Example 1: sdiff -s 1.txt 2. txt
-s:
--suppress-common-lines:
Do not print common lines
-w columns
--width=columns
Use an output width of columns. Note that for historical reasons, this option is -W in diff, -w in sdiff.
Example 1: do not print common line
[root@localhost ~]# sdiff -s 1.bashrc 2.bashrc
# box to box deployment |# 1004 box to box deployment
alias 109='telnet 10.74.9.109' <
#switcher information |# public switcher information
alias 185='ssh asr@10.74.9.185' |
alias 190='ssh asr@10.74.9.190' |
> # linux virtual machine
> alias 185='ssh -X asr@10.74.9.185'
> alias 190='ssh -X asr@10.74.9.190'
> alias 203='ssh asr@10.74.30.203'
> alias 204='ssh asr@10.74.30.204'
> alias 205='ssh asr@10.74.30.205'
[root@localhost ~]#
Example 1: specify colomn
[root@localhost ~]# sdiff -s -w 150 1.bashrc 2.bashrc
# box to box deployment |# 1004 box to box deployment
alias 109='telnet 10.74.9.109' <
#switcher information |# public switcher information
alias 185='ssh asr@10.74.9.185' |
alias 190='ssh asr@10.74.9.190' |
> # linux virtual machine
> alias 185='ssh -X asr@10.74.9.185'
> alias 190='ssh -X asr@10.74.9.190'
> alias 203='ssh asr@10.74.30.203'
> alias 204='ssh asr@10.74.30.204'
> alias 205='ssh asr@10.74.30.205'
[root@localhost ~]#
- diff和sdiff使用心得
- linux下文件对比工具详解(diff、diff3、sdiff、vimdiff和comm)
- sdiff
- diff和patch使用
- diff和patch使用
- diff和patch使用
- diff和patch简单使用
- diff和patch使用体会
- patch 和 diff 的使用
- diff和patch的使用
- 使用diff和patch工具
- diff和patch使用总结
- 如何使用 vimdiff 来 git diff 和merge diff
- 使用diff和patch修改文件
- 使用diff和patch维护源码
- diff和patch的使用一二
- linux 下 patch和diff使用
- 关于diff和patch工具的使用
- UIView大小缩放的动画效果函数
- Lightoj 1031 区间DP
- 验证身份证号码的计算方法
- 开源工具:DeepLearnToolbox
- 几个最短路径算法Floyd、Dijkstra、Bellman-Ford、SPFA的比较
- diff和sdiff使用心得
- [互联网面试笔试汇总C/C++-18] 生产者消费者模型
- 初识hibernate——基础与核心
- 一个简单的python socket编程
- 经典算法研究系列:九、图像特征提取与匹配之SIFT算法
- opengl 坐标测试
- C语言的那些事——数学分段函数
- 东子集成1
- Android中如何使用WIFI来连接ADB