-qオプションを使う
-q --brief
Output only whether files differ.
例)
ディレクトリ
4.1.2/libexec/conf と 4.2/libexec/conf
で差分があるファイルを調査したい。
-> % diff -r 4.1.2/libexec/conf 4.2/libexec/conf
48a49
> # - If you need to set the schema, please refer to http://jira.codehaus.org/browse/SONAR-5000
53,59d53
< # Uncomment the following property if the Oracle account has permissions to access multiple schemas,
< # for example sonar schemas with different versions. In that case, use the same property during project analysis
< # (-Dsonar.jdbc.schema=<schema>)
< # The schema is case-sensitive.
< #sonar.jdbc.schema=sonar
<
<
...
だと大量に差分が出るが-q
オプション追加でファイル名のみ表示になる
-> % diff -qr 4.1.2/libexec/conf 4.2/libexec/conf
Files 4.1.2/libexec/conf/sonar.properties and 4.2/libexec/conf/sonar.properties differ