home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!bnrgate!bcars267!bcars267!emcoop
- From: emcoop@bnr.ca (hume smith)
- Subject: Re: Need a program to compare lines in a text file
- In-Reply-To: abrown@hpcvcec.cv.hp.com's message of Tue, 12 Jan 1993 00:24:41 GMT
- Message-ID: <EMCOOP.93Jan11205523@bcars148.bnr.ca>
- Sender: news@bnr.ca (usenet)
- Nntp-Posting-Host: bcars148
- Organization: Bell-Northern Research, Ottawa, Canada
- References: <C0pro2.K44@news.cso.uiuc.edu> <1993Jan12.002441.19621@hpcvca.cv.hp.com>
- Date: Tue, 12 Jan 1993 01:55:23 GMT
- Lines: 17
-
- In article <1993Jan12.002441.19621@hpcvca.cv.hp.com> abrown@hpcvcec.cv.hp.com (Allen Brown) writes:
-
- 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.
-
- not quite; uniq only eliminates consecutive identical lines. it would
- be necessary to sort first. nevertheless, there may be some such beast
- in the Fish Disks. just about everything is by now :-)
- --
- Hume Smith My name is little Bongo
- hume.smith@acadiau.ca I sing my little song-go
- emcoop@bnr.ca Rhymes are hard to think of
- Except for made-up words like "flong-go"
-