COMM(1) - General Commands Manual # COMM(1) - General Commands Manual
NAME # comm - select or reject lines common to two files
SYNOPSIS # comm [-123f] file1Â file2
DESCRIPTION # The comm utility reads file1 and file2, which should be sorted lexically, and produces three text columns as output: lines only in file1; lines only in file2; and lines in both files.
The filename ‘-’ means the standard input.
...
JOIN(1) - General Commands Manual # JOIN(1) - General Commands Manual
NAME # join - relational database operator
SYNOPSIS # join [-1 field] [-2 field] [-a file_number | -v file_number] [-e string] [-o list] [-t char] file1 file2
DESCRIPTION # The join utility performs an “equality join” on the specified files and writes the result to the standard output. The “join field” is the field in each file by which the files are compared.
...
SORT(1) - General Commands Manual # SORT(1) - General Commands Manual
NAME # sort - sort, merge, or sequence check text and binary files
SYNOPSIS # sort [-bCcdfgHhiMmnRrsuVz] [-k field1[,field2]] [-o output] [-S size] [-T dir] [-t char] [file …]
DESCRIPTION # The sort utility sorts text and binary files by lines. A line is a record separated from the subsequent record by a newline (default) or NUL ‘\0’ character (-z option) .
...
UNIQ(1) - General Commands Manual # UNIQ(1) - General Commands Manual
NAME # uniq - report or filter out repeated lines in a file
SYNOPSIS # uniq [-ci] [-d | -u] [-f fields] [-s chars] [input_file [output_file]]
DESCRIPTION # The uniq utility reads the standard input comparing adjacent lines and writes a copy of each unique input line to the standard output. The second and succeeding copies of identical adjacent input lines are not written.
...