The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ksh script using expr to calculate percentages wurzul Shell Programming and Scripting 6 05-01-2008 03:19 AM
KnowledgeTree business model hits many a niche iBot UNIX and Linux RSS News 0 04-30-2008 11:20 AM
Web Hits from Unix Negm UNIX and Linux Applications 1 03-12-2008 05:00 AM
Tiny Linux Hits the Streets - PC World iBot UNIX and Linux RSS News 0 10-03-2007 02:30 PM
Please Help ( Calculate time taken in a script) sanjay92 UNIX for Dummies Questions & Answers 9 10-02-2001 11:20 AM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-03-2008
Registered User
 

Join Date: Jan 2008
Posts: 6
Shell Script calculate the hits ?!

could you please find a solution for this

a complex command using pipes to Calculate the number of hits per client in Squid log file (access.log), the command should display most active hosts first.

Line example

1197979501.787 1 10.1.14.62 TCP_NEGATIVE_HIT/404 1463 GET http://url

The output should be like:

34 10.1.14.3
33 10.1.14.5
22 10.1.16.1
18 10.1.18.1
Google UNIX.COM
Forum Sponsor
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:44 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0