Skip to content

Instantly share code, notes, and snippets.

@shigwata
Created March 30, 2017 04:11
Show Gist options
  • Select an option

  • Save shigwata/d6f40616976ab305d8698f785dc828b6 to your computer and use it in GitHub Desktop.

Select an option

Save shigwata/d6f40616976ab305d8698f785dc828b6 to your computer and use it in GitHub Desktop.
diffのコマンドメモ

ディレクトリ比較

$ diff -r dir1 dir2

ディレクトリ比較 ファイル名のみを表示

$ diff -rq dir1 dir2

ディレクトリ比較 ファイル名のみを表示 空白無視

$ diff -rqw dir1 dir2

ディレクトリ比較 ファイル名のみを表示 空白無視 同一ファイルも表示

$ diff -rqws dir1 dir2

ディレクトリ比較 ファイル名のみを表示 空白無視 同一ファイルのみ表示

$ diff -rqws dir1 dir2 | grep "identical"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment