Write a command to display lines common between two files
Answers
Answered by
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
English,
5 months ago
Computer Science,
11 months ago
Math,
1 year ago
Physics,
1 year ago
Math,
1 year ago