home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / lang / awk / 26 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  746 b 

  1. Path: sparky!uunet!hela.iti.org!usc!usc!not-for-mail
  2. From: sumonbha@almaak.usc.edu (Sumon Bhaumik)
  3. Newsgroups: alt.lang.awk
  4. Subject: Help
  5. Date: 27 Jan 1993 22:18:26 -0800
  6. Organization: University of Southern California
  7. Lines: 15
  8. Distribution: world
  9. Message-ID: <1k7triINN41n@almaak.usc.edu>
  10. NNTP-Posting-Host: almaak.usc.edu
  11.  
  12. Guys, I am a new comer to awk. I am trying to do the following. I have a 
  13. data set with 8 fields and 40000 rows. $1 is household id numbers. There
  14. are repetations in $1. What I want to do is to keep the row in which a
  15. household id appears first and delete all other rows with the same household
  16. id. 
  17.  
  18. How do I do this? 
  19.  
  20. Whoever is helping me, thank you. Can you please send the solution to my
  21. email address?
  22.  
  23. Sumon
  24.  
  25.  
  26.     
  27.