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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cron Script report new files in directory michaelb1984 Shell Programming and Scripting 3 06-01-2008 04:56 PM
system status report script moco Shell Programming and Scripting 0 04-09-2007 05:35 AM
need help on unix script to run report isingh786 Shell Programming and Scripting 2 06-29-2006 04:28 PM
Unix sheel script to run report isingh786 HP-UX 0 06-28-2006 01:28 PM
backup report script new2prog Shell Programming and Scripting 2 01-12-2006 02:50 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-07-2008
cmontr cmontr is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 22
log report script

Hello everyone,

By any chance, anyone has a script (shell) that I can modify for the following:

I have daily log files and they look like:

Accept aabbcc [02/Jun/2008:10:34:36 -0600] "111.11.111.111 uid=MyID, ou=People, o=helloworld.com" "webagent" [] []
Reject aabbcc [02/Jun/2008:10:34:36 -0600] "111.11.111.111 uid=MyID, ou=People, o=helloworld.com" "webagent" [] []
Validate ddeeff [02/Jun/2008:10:34:36 -0600] "111.11.111.111 uid=MyID, ou=People, o=helloworld.com" "webagent" [] []


The need is to run a script against it with some inputs, such as:

./script.sh uid start_date end_date all_dates

above may not contain the end_date; but eventually there should be sometimes.

The output should be something like this:

# Total Activities based on uid

uid=aabbcc
Accept: #
Reject: #
Validate: #

uid=ddeeff
Accept: #
Reject: #
Validate: #


so on... If anyone can help, greatly appreciated.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0