home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- 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
- From: abrown@hpcvcec.cv.hp.com (Allen Brown)
- Subject: Re: Need a program to compare lines in a text file
- Message-ID: <1993Jan12.002441.19621@hpcvca.cv.hp.com>
- Sender: nobody@hpcvca.cv.hp.com
- Nntp-Posting-Host: hpcvcec.cv.hp.com
- Organization: Hewlett-Packard Company, Corvallis, Oregon USA
- References: <C0pro2.K44@news.cso.uiuc.edu>
- Date: Tue, 12 Jan 1993 00:24:41 GMT
- Lines: 12
-
- miller@mrcnext.cso.uiuc.edu (Geoffrey M. Miller) writes:
- : 1. Read in a line of text.
- : 2. Compare that line to every line thereafter, deleting all identical lines.
- : 3. Read in the next line and proceed, etc.
-
- You have just described the 'uniq' program of Unix vintage. I am five
- miles from my Amiga so I cannot get specific. But there are numerous
- Unix like packages in the Fish lists. Several should include uniq.
- Sksh may also include it (I don't remember).
- --
- Allen C. Brown abrown@cv.hp.com or hplabs!hpcvca!abrown or "Hey you!"
- Q: What has 10 heads and no brains? A: a committee.
-