File1:
boston:1:x:
chicago:1:x:
baltimore:1:x:
buffalo:1:x:
denver:1:x:
reno:1:x:
dallas:1:x:
austin:1:x:
File2:
chicago:1:x:
baltimore:1:x:
austin:1:x:
dallas:1:x:
buffalo:1:x:
boston:1:x:
denver:1:x:
reno:1:x:
File2 should be sorted identically to File1. I know how to sort a single file, but how to sort a file based on the field in another file I am uncertain.
Thanks.
boston:1:x:
chicago:1:x:
baltimore:1:x:
buffalo:1:x:
denver:1:x:
reno:1:x:
dallas:1:x:
austin:1:x:
File2:
chicago:1:x:
baltimore:1:x:
austin:1:x:
dallas:1:x:
buffalo:1:x:
boston:1:x:
denver:1:x:
reno:1:x:
File2 should be sorted identically to File1. I know how to sort a single file, but how to sort a file based on the field in another file I am uncertain.
Thanks.