comm

Select or reject lines common to two files. Both files…

comm

Select or reject lines common to two files. Both files must be sorted.

comm {{file1}} {{file2}}

comm -12 {{file1}} {{file2}}

cat {{file1}} | comm -12 - {{file2}}

comm -23 {{file1}} {{file2}} > {{file1_only}}

comm -13 <(sort {{file1}}) <(sort {{file2}})

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← comby command →