home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / question / 15114 < prev    next >
Encoding:
Text File  |  1993-01-02  |  1.3 KB  |  33 lines

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