home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!spool.mu.edu!eng.ufl.edu!spp
- From: spp@crane.cis.ufl.edu (Stephen P. Potter)
- Subject: Re: Matching two lists
- Message-ID: <1993Jan2.163942.23572@eng.ufl.edu>
- Sender: news@eng.ufl.edu (Usenet Diskhog System)
- Organization: Univ. of Florida CIS Dept.
- References: <1992Dec31.182128.29042@magnus.acs.ohio-state.edu> <C051yz.Eu4@ux1.cso.uiuc.edu>
- Date: Sat, 2 Jan 93 16:39:42 GMT
- Lines: 21
-
- krisk@ux1.cso.uiuc.edu (Kris Klindworth) writes:
- >szatezal@magnus.acs.ohio-state.edu (Shane M Zatezalo) writes:
- >>I have a whole long list of email addresses, and I want to get
- >>the double entries out of it.
- >>What's the easiest way of doing this? The list is just a straight
- >>text file... like:
- >sort file|uniq >newfile
-
- Why would you wish to start an entire new process when sort has an option
- to do uniq built in?
-
- From the sort(1v) man pages:
- -u Unique. Emit only the first line in each set of lines
- for which all sorting fields compare equally.
-
- Steve
- --
- cccc i ssss University of Florida Computer and Information Sciences
- c s Unix Consulting Staff (904) 392-1183 E309A
- c i ssss Email: spp@cis.ufl.edu, u4930any@elm.circa.ufl.edu
- c i s PRISONER@ufcc.ufl.edu, Bitnet: PRISONER@ufcc cccc i ssss
-