나는 두 개의 파일을 비교하기 위해 통신 명령을 사용했지만, 나는 세 번째 파일에 파이프 그것을 드릴 수 없습니다 :comm 출력을 파일로 파이프하는 방법은 무엇입니까?
comm file1 file2 > file3
comm: file 1 is not in sorted order
comm: file 2 is not in sorted order
가 어떻게 이렇게 할 수 있습니까? 파일이 이미 정렬되어 있습니다.
(통신 FILE1 파일 2 작품 밖으로 인쇄 그것을)
시료 입력 :
FILE1 :
21
24
31
36
40
87
105
134
...
파일 2 :
가10
21
31
36
40
40
87
103
...
통신 FILE1 파일 2가 :
작동comm file1 file2 > file3
comm: file 1 is not in sorted order
comm: file 2 is not in sorted order
이러한 메시지를 생성하는 샘플 입력을 제공 할 수 있습니까? – Johnsyweb
'comm -3 file1 file2'는 stdout에서 무엇을 보여줍니까? – anubhava