LinuxSir.cn,穿越时空的Linuxsir!

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

diff问题 -- 生成patch文件

[复制链接]
发表于 2006-6-21 11:25:26 | 显示全部楼层 |阅读模式
如果比较两个文件,可以通过 diff -u a.txt.orig a.txt > a.txt.patch
如果只有一个文件, 如何使用diff

diff -N a.txt > a.txt.patch    //提示diff: missing operand after `a.txt`

thanks
发表于 2006-6-22 03:21:29 | 显示全部楼层
One file? If there is only file, no need to compare anything. right?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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