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.

Required fields*

2
  • seems like an easier approach for sure, and will also take less memory on my system I believe. Can I do the following for example with diff? diff <(sort file1) <(sort file2) Commented Apr 8, 2021 at 11:01
  • It won’t make any noticeable difference to memory usage. You can do this with diff, but only with one of its inputs, which makes the overall command harder to read IMO: sort file1 | diff - <(sort file2). Commented Apr 8, 2021 at 11:43