私は2つのファイルを比較するCOMMコマンドを使用しましたが、私は3番目のファイルにそれがパイプにできないよ:comm出力をファイルにパイプするにはどうすればよいですか?
comm file1 file2 > file3
comm: file 1 is not in sorted order
comm: file 2 is not in sorted order
私はこれをどのように行うのですか? ファイルは既にソートされています。
(COMM FILE1 FILE2作品、それをプリントアウト)
サンプル入力:
FILE1:
21
24
31
36
40
87
105
134
...
FILE2:
10
21
31
36
40
40
87
103
...
COMM FILE1 FILE2:
作品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