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
How to extract last week data from a log praveenvi Shell Programming and Scripting 5 05-22-2008 12:32 PM
how to extract data from tape. djahmed UNIX for Dummies Questions & Answers 1 05-22-2008 08:21 AM
Extract data correction??? gkrishnag UNIX for Dummies Questions & Answers 6 09-27-2006 05:59 AM
Extract data from file getdpg Shell Programming and Scripting 20 08-03-2006 04:54 AM
Extract data segment using awk?? apalex Shell Programming and Scripting 1 07-27-2004 07:13 AM

 
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 10-01-2007
kenm0j0 kenm0j0 is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 1
Help: Log data extract

So I got this old webapp doing some strange format with its logging and I need to extract only specific parts.

Basically the format of the log goes:

Date:<space>timestamp
User:<space>userid
AppID:<space>applicationid
Duration:<space>time(ms)
<line>
<line>
Date:<space>timestamp
User:<space>userid
AppID:<space>applicationid
Duration:<space>time(ms)
<line>
<line>
Date:<space>timestamp
User:<space>userid
AppID:<space>applicationid
Duration: <space>time(ms)

..and so on.

I'd like to get the User, AppID and Duration values on days worth of log file and put them on a comma delimeted file in format:

User, AppID, Duration
User, AppID, Duration

I struggled with awk, but couldnt get it to work.. I appreciate any help, thanks
 

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 12:52 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