home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / apps / bbs / smp_awk / nicelog.awk < prev    next >
Text File  |  1995-01-01  |  309b  |  15 lines

  1. # Nice Opus-style log
  2. # ===================
  3. # (C) 1994, BoLuSoft, Borek Lupomesky on 2:423/71@fidonet.org
  4.  
  5. BEGIN { id="" }
  6.   if(substr($0,1,1)==" ") flag=1; else flag=0;
  7.   if(NF>=(flag ? 4:5)) {
  8.     if(id!=(flag ? $4:$5)) {
  9.       id=(flag?$4:$5);
  10.       print "";
  11.     }
  12.   }
  13.   if(NF!=0) print
  14. }