Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • I think the problem is comm expects a lexicographic sort which is different from the numeric order of your inputs. Lexicographically, 1, 10, and 12 all need to sort before 2, so you need to resort your file1 and file2 to use comm. Commented Jun 13, 2018 at 15:34
  • 1
    You'd be getting an error from comm. It's always important to share these in your question. Commented Jun 13, 2018 at 19:07