comm コマンドを使って、2つのテキストファイルから重複行を引き算する

comm コマンドを使うと、2つのテキストファイルを用意して、
一方のテキストファイルから引き算するように、重複行を取り除くことができる。

filename: test1.txt

111
222
333
444
555
666

filename: test2.txt

333
555
777

comm -23 で test1.txt だけに存在するものを表示

$ comm -23 test1.txt test2.txt
111
222
444
666