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

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!sdd.hp.com!hp-cv!hp-pcd!hpcvca!hpcvcec.cv.hp.com!abrown
  3. From: abrown@hpcvcec.cv.hp.com (Allen Brown)
  4. Subject: Re: Need a program to compare lines in a text file
  5. Message-ID: <1993Jan12.002441.19621@hpcvca.cv.hp.com>
  6. Sender: nobody@hpcvca.cv.hp.com
  7. Nntp-Posting-Host: hpcvcec.cv.hp.com
  8. Organization: Hewlett-Packard Company, Corvallis, Oregon USA
  9. References: <C0pro2.K44@news.cso.uiuc.edu>
  10. Date: Tue, 12 Jan 1993 00:24:41 GMT
  11. Lines: 12
  12.  
  13. miller@mrcnext.cso.uiuc.edu (Geoffrey M. Miller) writes:
  14. : 1. Read in a line of text.
  15. : 2. Compare that line to every line thereafter, deleting all identical lines.
  16. : 3. Read in the next line and proceed, etc.
  17.  
  18. You have just described the 'uniq' program of Unix vintage.  I am five
  19. miles from my Amiga so I cannot get specific.  But there are numerous
  20. Unix like packages in the Fish lists.  Several should include uniq.
  21. Sksh may also include it (I don't remember).
  22. --
  23.   Allen C. Brown  abrown@cv.hp.com or hplabs!hpcvca!abrown or "Hey you!"
  24.     Q: What has 10 heads and no brains?  A: a committee.
  25.