The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how can i pick the latest log file as per below mail2sant Shell Programming and Scripting 4 04-05-2009 01:14 AM
get latest file inquirer Shell Programming and Scripting 4 04-02-2009 11:15 AM
Getting latest file from ftp arunavlp UNIX for Dummies Questions & Answers 3 02-08-2008 10:19 AM
Compare dates in a field and print the latest date row cvkishore Shell Programming and Scripting 1 08-04-2007 07:58 AM
Couldn't open status file /var/samba/STATUS.LCK macdonto UNIX for Dummies Questions & Answers 2 08-08-2001 08:42 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 07-15-2004
encrypted's Avatar
encrypted encrypted is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2004
Location: Oslo, Norway
Posts: 219
latest status of an field in a log file

Hi

I have got a log file which is like:

id status
---------------------
12345 status1.true
12345 status2.true
12345 status3.false
12345 status4.true
23452 status5.true
23452 status6.true
23452 status7.false
65243 status9.true
.
.
.
.
.
.
.
and so on

The id field shows the id of an event while as the status field shows
the status of the id to be true or false.
For a particular id I want to know the status as true or false.
The log is sorted by timestamp
Eg. here in my log the status for 12345 would be true
while as the status for 23452 would be false
and for 65243 it would be true.

Right now I have to manually look at the last entry for the
particular id to find it's status.
Is there another way around to do this.

Regards
enc
 

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:17 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