home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / apps / bbs / smp_awk / cutlog.awk next >
Text File  |  1995-01-01  |  457b  |  27 lines

  1. # Semper log cutter
  2. # =================
  3. # 1994 Borek Lupomesky
  4. #
  5. # E-mail: borek@leo1.zlin.vutbr.cz
  6. #         2:423/71@fidonet.org
  7. #         90:1200/1@nest.ftn
  8.  
  9. BEGIN { f=0; s="" }
  10. $5=="SEMP" && $6=="Ringing" {
  11.   if(f==0) s=$0;
  12.   f++;
  13.   next;
  14. }
  15. $5=="SEMP" && $6=="Emsi:" {
  16.   if($7=="Extra") next;
  17.   if($7=="Field") next;
  18.   print $0
  19. }
  20. {
  21.   if(f!=0) {
  22.     if(f==1) print s;
  23.     else printf("%s (%dx)\n",s,f);
  24.     f=0;
  25.   }
  26.   print $0
  27. }