Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!burl!codas!novavax!nugipsy!tcianflo From: tcianflo@nugipsy.UUCP Newsgroups: comp.unix.questions Subject: sort question... Message-ID: <303@nugipsy.UUCP> Date: Wed, 13-May-87 14:11:01 EDT Article-I.D.: nugipsy.303 Posted: Wed May 13 14:11:01 1987 Date-Received: Sat, 16-May-87 05:31:48 EDT Distribution: na Organization: Gould CSD, Fort Lauderdale, FL Lines: 35 Take a typical name and address file with many different names, but some common names, such as: Name1, J Smith, A | Smith, C | - family #1 Smith, E | Name2, R Smith, B | Smith, D | - family #2 Smith, F | Name3, P Using the sort utility, and sorting alphabetically by last name, you get family #1 and family #2 interleaved, of course, by virtue of their same last names and first initials. How would I set up the file so that I could get the sort utility to: 1) keep family members together without mixing up names with other families of the same last name 2) force the listing of a family group to be in a specified order, for example, head-of-house followed by children. Is there some scheme using additional fields in the file, or perhaps some other utility I should be using? Thanks in advance for any help you can send my way. -- => Regards, Tom Cianflone @ Gould Computer Systems Division <= => ...!{seismo,sun,pur-ee,brl-smoke}!gould!tcianflone <= => ...!ihnp4!{codas,allegra}!novavax!gould!tcianflone <= => NOTE: Disregard header info. Email to above paths only. <=