954,546 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

web page statistics - my first bash script

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

danny_xmas
Newbie Poster
1 post since May 2005
Reputation Points: 10
Solved Threads: 0
 

use awk's associative arrays index by the first field [ip address].

vgersh99
Newbie Poster
21 posts since Nov 2004
Reputation Points: 16
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You