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 >
Wrap
Text File
|
1991-07-24
|
440b
|
9 lines
{ if ( $9 == "from:" ) clients += 1
else if ( $10 == "from:" ) clients += 1
else if ( $11 == "from:" ) clients += 1
else if ( $7 == "Retrieving" ) rets += 1
else if ( $8 == "Retrieving" ) rets += 1
else if ( $7 == "Search" ) searches += 1
else if ( $8 == "Search!" ) searches += 1 }
END { print "Number of clients: ", clients, "\nNumber of Searches: ", searches, "\nNumber of Retrievals: ", rets, "\nTotal Transactions: ", rets+searches }