Indeed you&#x27;re right. Jonathan Leffler&#x27;s comment on Stack Overflow discusses the differences<p>---------<p>There are a couple of differences between comm and join:<p><pre><code>    comm compares whole lines; join compares fields within lines.
    comm prints whole lines; join can print selected parts of lines.
</code></pre>
---------<p><a href="http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;7234028&#x2F;bash-difference-between-join-and-comm" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;7234028&#x2F;bash-difference-b...</a>