comm

     

The comm comman in Unix is a utility that is used to compare two files for common and distinct lines. Comm is specified in the POSIX standard. It has been widely available on Unix-like systems since the mid to late 1980s.