diff --git a/comm b/comm index e073479..761fe77 100644 --- a/comm +++ b/comm @@ -1,8 +1,11 @@ # Print lines appearing in both and : comm -12 <(sort file1.csv) <(sort file2.csv) -# Print lines appearing only in : -comm -23 +# Print lines appearing only in the first file (sort both inputs for comm): +comm -23 <(sort file1.csv) <(sort file2.csv) + +# Print lines appearing only in the second file: +comm -13 <(sort file1.csv) <(sort file2.csv) # For diffing CSVs from a database, consider: # https://aswinkarthik.github.io/csvdiff/