Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ここに質問があります:私は2つのファイルを持っています:
file1:
aaa bbb ccc ddd
file2:
bbb ddd
この出力を取得するためにdiffを使用する方法(違いのみ)
aaa ccc
file1に固有のレコードが必要な場合は、次のようにします。
$ comm -23 <(sort file1) <(sort file2) aaa ccc