home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / CNEWS / _CNEWS.TAR / usr / lib / newsbin / expire / histdups < prev    next >
Encoding:
Text File  |  1994-09-02  |  390 b   |  18 lines

  1. # Awk program to merge history lines for the same article in a sorted history
  2. # file (such as is generated during the mkhistory processing).
  3. BEGIN { FS = "\t" ; OFS = "\t" ; mesgid = "" }
  4. {
  5.     if ($1 != mesgid) {
  6.         if (mesgid != "")
  7.             print mesgid, dates, names
  8.         mesgid = $1
  9.         dates = $2
  10.         names = $3
  11.     } else
  12.         names = names " " $3
  13. }
  14. END {
  15.     if (mesgid != "")
  16.         print mesgid, dates, names
  17. }
  18.