The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > UNIX and Linux Applications
Google UNIX.COM


UNIX and Linux Applications Questions involving software not covered by other forum go here. This includes Databases and Middleware.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Spliting file based on condition Raamc Shell Programming and Scripting 2 05-15-2008 08:51 AM
How to parse through a file and based on condition form another output file sivasu.india UNIX for Advanced & Expert Users 6 02-28-2008 12:59 AM
Changing old file name to new one if the old file name satisfied certain condition balzzz UNIX for Dummies Questions & Answers 1 02-17-2008 06:41 AM
Read file based on condition sbasetty Shell Programming and Scripting 5 01-31-2007 10:54 PM
Splitting a file based on some condition and naming them srivsn Shell Programming and Scripting 1 12-07-2005 07:27 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-09-2008
Registered User
 

Join Date: Jan 2008
Posts: 2
how to get a part of file pertaining to a condition

A log file contains details for last one year .This file contains log for all dates . The log file for a particular day starts with a particular string and ends with the same string .
We need to make a new file out of this existing file containing data after a particular date.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-09-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,088
after which date ? what applications is writing to this log file ? what is the OS ? what languages (if) need to be deployed ? are you root ? Please post more details with some samples.
Reply With Quote
  #3 (permalink)  
Old 01-09-2008
Registered User
 

Join Date: Jan 2008
Posts: 2
Quote:
Originally Posted by sysgate View Post
after which date ? what applications is writing to this log file ? what is the OS ? what languages (if) need to be deployed ? are you root ? Please post more details with some samples.
********************************************************we need to retain the log for last one month
applicaton writing is: Abinito
NO we are not the root.




here is a part of the log


--------------------------------------------------------------------------------
Data Bytes Records Status Skew Flow
Vertex Port
--------------------------------------------------------------------------------
Apr 05 11:24:58 Phase 4 ended (3 seconds)
CPU Time Status Skew Vertex
0.330 [ : 1] 0% Job_Audit_Complete.gatherlg_log
0.340 [ : 1] 0% Job_Audit_Complete.gatherlg_log_1
0.540 [ : 1] 0% Job_Audit_Complete.gen_rec_job_audit
0.360 [ : 1] 0% Job_Audit_Complete.reformat_job_audit
1.140 [ : 1] 0% Job_Audit_Complete.updtab_job_audit
--------------------------------------------------------------------------------
Data Bytes Records Status Skew Flow
Vertex Port
112 1 [ : : 1] 0% Job_Audit_Complete.Flow_1
Job_Audit_Complete.gen_rec_job_audit out
112 1 [ : : 1] 0% Job_Audit_Complete.Flow_1
Job_Audit_Complete.reformat_job_audit in
77 1 [ : : 1] 0% Job_Audit_Complete.Flow_2
Job_Audit_Complete.reformat_job_audit out0
77 1 [ : : 1] 0% Job_Audit_Complete.Flow_2
Job_Audit_Complete.updtab_job_audit in
337 2 [ : : 1] 0% Job_Audit_Complete.Flow_3
Job_Audit_Complete.reformat_job_audit log
337 2 [ : : 1] 0% Job_Audit_Complete.Flow_3
Job_Audit_Complete.gatherlg_log in
4,395 27 [ : : 1] 0% Job_Audit_Complete.Flow_4
Job_Audit_Complete.updtab_job_audit log
4,395 27 [ : : 1] 0% Job_Audit_Complete.Flow_4
Job_Audit_Complete.gatherlg_log_1 in
------------------------------------------------------------------------
++GTR++;J4,-1;--GTR--


this is a part of the log
basing on the date condition we need to get the log for last one month
++GTR++;J4,-1;--GTR-- is the ending string for a particular days log
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:21 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0