home *** CD-ROM | disk | FTP | other *** search
/ ftp.uv.es / 2014.11.ftp.uv.es.tar / ftp.uv.es / pub / unix / wais-8-b5.tar.Z / wais-8-b5.tar / wais-8-b5 / bin / stats.awk < prev    next >
Text File  |  1991-07-24  |  440b  |  9 lines

  1. { if ( $9 == "from:" ) clients += 1
  2. else if ( $10 == "from:" ) clients += 1
  3. else if ( $11 == "from:" ) clients += 1
  4. else if ( $7 == "Retrieving" ) rets += 1
  5. else if ( $8 == "Retrieving" ) rets += 1
  6. else if ( $7 == "Search" ) searches += 1 
  7. else if ( $8 == "Search!" ) searches += 1 }
  8. END { print "Number of clients: ", clients, "\nNumber of Searches: ", searches, "\nNumber of Retrievals: ", rets, "\nTotal Transactions: ", rets+searches }
  9.