home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18564 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.5 KB  |  31 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!bnrgate!bcars267!bcars267!emcoop
  3. From: emcoop@bnr.ca (hume smith)
  4. Subject: Re: Need a program to compare lines in a text file
  5. In-Reply-To: abrown@hpcvcec.cv.hp.com's message of Tue, 12 Jan 1993 00:24:41 GMT
  6. Message-ID: <EMCOOP.93Jan11205523@bcars148.bnr.ca>
  7. Sender: news@bnr.ca (usenet)
  8. Nntp-Posting-Host: bcars148
  9. Organization: Bell-Northern Research, Ottawa, Canada
  10. References: <C0pro2.K44@news.cso.uiuc.edu> <1993Jan12.002441.19621@hpcvca.cv.hp.com>
  11. Date: Tue, 12 Jan 1993 01:55:23 GMT
  12. Lines: 17
  13.  
  14. In article <1993Jan12.002441.19621@hpcvca.cv.hp.com> abrown@hpcvcec.cv.hp.com (Allen Brown) writes:
  15.  
  16.    miller@mrcnext.cso.uiuc.edu (Geoffrey M. Miller) writes:
  17.    : 1. Read in a line of text.
  18.    : 2. Compare that line to every line thereafter, deleting all identical lines.
  19.    : 3. Read in the next line and proceed, etc.
  20.  
  21.    You have just described the 'uniq' program of Unix vintage.
  22.  
  23. not quite; uniq only eliminates consecutive identical lines.  it would
  24. be necessary to sort first.  nevertheless, there may be some such beast
  25. in the Fish Disks.  just about everything is by now :-)
  26. --
  27. Hume Smith                                    My name is little Bongo
  28. hume.smith@acadiau.ca                         I sing my little song-go
  29. emcoop@bnr.ca                                 Rhymes are hard to think of
  30.                                               Except for made-up words like "flong-go"
  31.