|
发表于 2003-9-1 20:52:36
|
显示全部楼层
man diff
...
diff - find differences between two files
...
-r --recursive Recursively compare any subdirectories found.
是在比较目录的时候,进行递归比较!无法对多个文件进行比较.
[/home/javalee/myshell]diff tmp1 tmp2 tmp3
diff: extra operand `tmp3'
diff: Try `diff --help' for more information.
当然如果
diff dirname1 dirname2
就可以两个目录下的所有文件包括多个同名文件进行比较的.
不过那个-r怎么有没有无所谓呀:ask |
|