home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18526 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.2 KB  |  30 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!gatech!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!mrcnext.cso.uiuc.edu!miller
  3. From: miller@mrcnext.cso.uiuc.edu (Geoffrey M. Miller)
  4. Subject: Need a program to compare lines in a text file
  5. Message-ID: <C0pro2.K44@news.cso.uiuc.edu>
  6. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  7. Organization: University of Illinois at Urbana
  8. Date: Mon, 11 Jan 1993 23:52:49 GMT
  9. Lines: 19
  10.  
  11. Hopefully someone can help me with my problem!
  12.  
  13. I have a text file well over 10000 lines that I need to edit.
  14. Many lines are exactly the same as others, and I need to remove the duplicates.
  15.  
  16. So, what I need is a small program or maybe even an AREXX macro for CygnusEd:
  17.  
  18. 1. Read in a line of text.
  19. 2. Compare that line to every line thereafter, deleting all identical lines.
  20. 3. Read in the next line and proceed, etc.
  21.  
  22. Can someone whip this (relatively easy) program up for me, tell me where to
  23. locate an existing program that would accomplish this, or give me an AREXX
  24. script to use in CygnusEd or DirectoryOpus?
  25.  
  26. I would be ETERNALLY grateful since I have no programming ability whatsover!
  27.  
  28. Thanks!  Geoff Miller (University of Illinois)
  29.  
  30.