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 | 29 | 30 | 31 |
Tags
- map
- Filter
- MINUS
- Foreign Key
- collection
- lifecycle
- Interface
- docker-compose
- Generic
- docker
- function
- Swift
- recyclerview
- Service
- union
- AWS
- LiveData
- class component
- CLASS
- animation
- elementAt
- list
- Kotlin
- mongoose
- react native
- ConstraintLayout
- vuex
- ReactNative
- enum
- 생명주기
Archives
- Today
- Total
개발 일기
comm , cmp 본문
comm은 지정한 두 파일의 공통 행과 구별되는 행으로 구별하는 명령어 입니다.
사용 법 :)
comm [옵션] 파일명 파일명
다음과 같이 파일이 있다고 가정을 합니다.
v1
hello world
v2
hello world
nice to meet you
예시 :)
//비교 결과 파일 1에만 있는 것은 출력 x
comm -1 v1 v2
hello world
nice to meet you
//비교 결과 파일 2에만 있는 것은 출력 x
comm -2 v1 v2
hello world
//비교 결과 두개의 파일 전부다 존재하는 라인은 출력 x
comm -3 v1 v2
nice to meet you
cmp
두개의 파일이 동일한지 다른지에 대해서 확인할수 있는 명령어 입니다.
[예시]
$ cmp v1 v2
----
v1 v2 differ: byte 13, line 2
Comments