Show Lines in One File but Not Another
This page answers questions like these:
- How to show lines in one file but not another?
- How to show lines that are in one file but not another?
- How to show lines in one sorted file but not another sorted file?
- How to show lines in one ordered file but not another ordered file?
Show Lines in One File not Not Another File:
comm -2 -3 FILE1 FILE2
- Show lines in sorted file FILE1 which are not in sorted file FILE2.
- Cons: Expects both files to be sorted and doesn’t work properly if they’re not.
Lines Common To Two Files
Home > Linux / Unix > Show Lines in One File but Not Another
Tags: common lines, lines common, file, text file, linux, unix, solaris, bsd, aix