LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 949|回复: 3

如何 比较两个文件是否相同(忽略空行的影响)

[复制链接]
发表于 2003-10-30 13:44:28 | 显示全部楼层 |阅读模式
用一句shell实现
发表于 2003-10-31 11:45:05 | 显示全部楼层
if you just want to ignore black line. try to use sed to delete all the black line each file you want to compare.

after that you can compare them now.
发表于 2003-10-31 12:15:50 | 显示全部楼层
有些是可以的, 但不太記得清楚 :p
平時用winmerge 和 Kompare
发表于 2003-10-31 12:49:04 | 显示全部楼层
请查阅comm,diff等命令
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表