diff
有一个选项--recursive
(-r
)可在两个目录(其中的文件)之间进行比较。有没有办法diff
忽略某些子目录(例如:.svn)?
$ diff -r src1/ src2/
diff
有一个选项--recursive
(-r
)可在两个目录(其中的文件)之间进行比较。有没有办法diff
忽略某些子目录(例如:.svn)?
$ diff -r src1/ src2/
Answers:
--exclude=".svn"
像这样添加作为选项:
$ diff -r --exclude =“。svn” src1 / src2 /
--exclude
每次使用-x ".svn"
diff --exclude=.svn ...