Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- ssh
- web.xml
- 줄바꿈 문자
- resource
- maVen
- 단축키
- context
- netsh
- JavaScript
- VirtualBox
- vscode
- grep
- profile
- Source
- port
- Quartz
- xargs
- Eclipse
- Windows 10
- 네트워크
- GIT
- lsof
- bash
- tomcat
- Mac
- find
- import
- Windows
- IntelliJ
- plugin
Archives
- Today
- Total
develog
[bash] diff 본문
# -r 서브 디렉토리까지 비교
# -q 파일명만 출력하고 내용은 출력하지 않음
# -s 동일한 파일도 결과로 출력
diff -rq dir01 dir02
# --exclude
diff -rq \
--exclude '.DS_Store' \
--exclude '.git' \
--exclude 'build' \
--exclude 'node_modules' \
--exclude '*js_del' \
node-backend1 node-backend2
$ diff --help
-r --recursive Recursively compare any subdirectories found.
-q --brief Output only whether files differ.
-w --ignore-all-space Ignore all white space.
-B --ignore-blank-lines Ignore changes whose lines are all blank.
-i --ignore-case Ignore case differences in file contents.
-s --report-identical-files Report when two files are the same.
Comments