UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old September 4th, 2003, 10:02 PM
Serious_Lee Serious_Lee is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 1 Serious_Lee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 4 sec
Reputation Power: 0
Question awk problem

Hopefully someone can help me out... here's my problem. I am trying to use awk to strip out portions of a daily log that is marked with time and date stamps. I want to be able to span a 12 hr period, but I run into a logic block when the day changes over at midnight. Can anyone help me determine the logic I need to accomplish this? Here's an example:

Log entry 1 starts Wed Sept 3 19:00 and ends Wed Sept 3 21:00
Log entry 2 starts Wed Sept 3 23:00 and ends Thurs Sept 4 2:00
Log entry 3 starts Thurs Sept 4 4:00 and ends Thurs Sept 4 6:00

If I run this program at 7:00 in the morning I want to get all three entries (19:00->7:00 timespan). Any help is greatly appreciated!

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > awk problem


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway