944,047 Members | Top Members by Rank

Ad:
May 14th, 2005
0

web page statistics - my first bash script

Expand Post »
Hi there, I'm new to this forum and to bash scripting.

I am required to write a bash shell script that processes statistical information for a website. Each web page has a "hits" file associated with it, eg. index.hits. Each line of a hits file records a single access of that web page, including IP address and access time. Example line:

123.123.123.123 Mon Feb 7 22:02:35 GMT 2005

My script will process this information and present it in a table. I can't figure out how I would find if there where more than one "hit" from the same IP?

Can anyone give me a little help?

Many Thanks

Dan
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
danny_xmas is offline Offline
1 posts
since May 2005
May 18th, 2005
0

Re: web page statistics - my first bash script

use awk's associative arrays index by the first field [ip address].
Reputation Points: 16
Solved Threads: 0
Newbie Poster
vgersh99 is offline Offline
21 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Shell Scripting Forum Timeline: what's the meaning of " ${1:-} "?
Next Thread in Shell Scripting Forum Timeline: Removing entries





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC