打印

diff问题 -- 生成patch文件

diff问题 -- 生成patch文件

如果比较两个文件,可以通过 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

TOP

diff - find differences between two files
Homepage: http://www.zhyfly.org/
GNU/Linux: redhat(Fedora Core) -> Debian -> SlackWare

TOP