diff
有一个选项--recursive
( -r
) 可以对两个目录(其中的文件)进行比较。有没有办法diff
忽略某些子目录(例如:.svn)?
$ diff -r src1/ src2/
答案1
添加--exclude=".svn"
如下选项:
$ diff -r --exclude=".svn" src1/ src2/
答案2
diff --exclude=.svn ...
diff
有一个选项--recursive
( -r
) 可以对两个目录(其中的文件)进行比较。有没有办法diff
忽略某些子目录(例如:.svn)?
$ diff -r src1/ src2/
添加--exclude=".svn"
如下选项:
$ diff -r --exclude=".svn" src1/ src2/
diff --exclude=.svn ...