![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX and Linux Applications Questions involving software not covered by other forum go here. This includes Databases and Middleware. |
|
|
||||
| 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 |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
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 |
|||
| Google UNIX.COM |