[Tutor] Comparing lines in two files, writing result into a
third file
Danny Yoo
dyoo@hkn.eecs.berkeley.edu
Wed Apr 23 13:15:23 2003
On Wed, 23 Apr 2003 stuart_clemons@us.ibm.com wrote:
> Yes, that's the good news ! The input files will always be sorted.
Hi Stuart,
Can you talk a little more about why having the input files sorted is a
good thing? This is not a silly question, but is meant to help you focus
on a particular part of the problem: there's something about the sorting
that makes this "merging" problem particularly nice.
[By the way, Stuart's problem is similar to the Unix utility 'comm', which
also requires that its inputs are in sorted order.]
Good luck to you!