From 5ab325c93c707055cf38c88644ab6daa9e757a87 Mon Sep 17 00:00:00 2001 From: mau5trobe <360145078+mau5trobe@users.noreply.github.com> Date: Mon, 23 Nov 2026 16:16:16 +0800 Subject: [PATCH] Sort both inputs in comm difference examples --- comm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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/