comm

Toon overeenkomstige regels tussen twee bestanden. Beide bestanden dienen gesorteerd te zijn. Meer informatie: https://www.gnu.org/software/coreutils/manual/html_node/comm-invocation.html.

comm {{bestand1}} {{bestand2}}

comm -12 {{bestand1}} {{bestand2}}

cat {{bestand1}} | comm -12 - {{bestand2}}

comm -23 {{bestand1}} {{bestand2}} > {{alleen_bestand1}}

comm -13 <(sort {{bestand1}}) <(sort {{bestand2}})