hello
i want to make bash scripts to search in access_log to count how many time each "IP" visit URL that contain word "newspaper".
the output will be like this
100 37.130.227.133 - - [16/May/2013:09:48:26 +0300] "GET /en/index.php?name=newspaper
40 94.23.73.182 - - [16/May/2013:09:48:26 +0300] "GET /english/index.php?name=newspaper
20 199.48.147.35 - - [16/May/2013:09:48:26 +0300] "GET /arab/page.php?name=newspaper
70 88.208.90.1 - - [16/May/2013:09:48:26 +0300] "GET /ar/result.php?name=newspaper
100 37.130.227.133 mean the IP "37.130.227.133" visit url that contain "newspaper" 100 time
i want to make bash scripts to search in access_log to count how many time each "IP" visit URL that contain word "newspaper".
the output will be like this
100 37.130.227.133 - - [16/May/2013:09:48:26 +0300] "GET /en/index.php?name=newspaper
40 94.23.73.182 - - [16/May/2013:09:48:26 +0300] "GET /english/index.php?name=newspaper
20 199.48.147.35 - - [16/May/2013:09:48:26 +0300] "GET /arab/page.php?name=newspaper
70 88.208.90.1 - - [16/May/2013:09:48:26 +0300] "GET /ar/result.php?name=newspaper
100 37.130.227.133 mean the IP "37.130.227.133" visit url that contain "newspaper" 100 time