远程服务器工作时只能用用diff命令,记下几条好用的:
并排格式输出:diff hello.c hello_diff.c -y -W 130
上下文输出格式:diff hello.c hello_diff.c -c
统一输出格式:diff hello.c hello_diff.c -u
忽略模式行:diff hello.c hello_diff.c -I include
Using process substitution to compare the contents of two directories
(to see which filenames are in one, but not the other)
diff <(ls $first_directory) <(ls $second_directory)
阅读(1555) | 评论(0) | 转发(0) |