Hi
> does anybody have a script which checks the cache_dir and reports the true
> average object size ?
cd /usr/local/squid/cache
find . -type f -printf "%s\n" | awk 'BEGIN {totalsize=0;count=0} {totalsize = totalsize+$1;count++} END {print "Average size is " totalsize/count}'
The power (and simplicity hahahahaha) of awk :)
Oskar
=============================================
'experience made art, but inexperience luck.'
=============================================
Received on Thu Jan 16 1997 - 22:47:31 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:06 MST