<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [Gllug] Sum trouble</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=2>> I am trying to calculate the total sum of bytes listed in the apache </FONT>
<BR><FONT SIZE=2>> access_log.</FONT>
<BR><FONT SIZE=2>> I have retrieved the particular column which gives me a list of byte </FONT>
<BR><FONT SIZE=2>> values thus:</FONT>
<BR><FONT SIZE=2>> cut -f10 -d" " access_log</FONT>
<BR><FONT SIZE=2>>  </FONT>
</P>

<P><FONT SIZE=2>cut -f10 -d" " access_log | awk '{ s= s + $5} {printf("s = %10.0f\n",s)}'</FONT>
</P>

<P><FONT SIZE=2>or derivatives thereof.</FONT>
</P>

<P><FONT SIZE=2>Useful?</FONT>
</P>

<P><FONT SIZE=2>Regards</FONT>
</P>

<P><FONT SIZE=2>Nimish</FONT>
</P>

</BODY>
</HTML>