[Gllug] Sum trouble

Philip, Nimish NPhilip at uti.co.za
Tue Apr 8 09:47:11 UTC 2003


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

cut -f10 -d" " access_log | awk '{ s= s + $5} {printf("s = %10.0f\n",s)}'

or derivatives thereof.

Useful?

Regards

Nimish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20030408/31fe990a/attachment.html>


More information about the GLLUG mailing list