comm assumes its two inputs are sorted. Is it correct that it works in the same way as the merge sort algorithm?
If yes, can I use comm to merge-sort two sorted files?


comm acts like a single merge step of the merge sort algorithm, and further, produces separated output (in different columns), not combined output. Therefore it can't be used to "merge-sort" anything.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.