Computer Science, asked by DRiFT5740, 11 months ago

Write a command to display lines common between two files

Answers

Answered by leelu27
0

Answer:

The first column is lines only appearing in file 1

The second column is lines only appearing in file 2

The third column is lines common to both files

comm requires the input files to be sorted

To exclude any column from appearing, add an option with that column number. For example, to see only the lines in common, use comm -12 ... or the lines that are only in file2, comm -13

Similar questions