The UNIX and Linux Forums  


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
Help, filtering some info. from a file under "()" varungupta UNIX for Advanced & Expert Users 10 09-11-2007 07:59 AM
Filtering multiple entries in a file suman_jakkula Shell Programming and Scripting 2 08-22-2006 06:02 AM
Urgent: Filtering a File HItesh Shell Programming and Scripting 5 05-11-2006 05:16 AM
Difficult Filtering Problem Piyush UNIX for Advanced & Expert Users 1 06-30-2003 05:06 PM
filtering by file size nir UNIX for Dummies Questions & Answers 2 01-17-2002 10:17 PM

 
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 11-22-2007
adityam adityam is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 18
problem in filtering the file

--------------------------------------------------------------------------------

Hi,
Plz help me out with this.
I have some requirement like this.....
I have a file like this...

* CS sent email (11.20)
CALYPSO 1031276 9076673 CDSHY FAILED Nov 19 2007 7:28AM OASYS: Unable to find CUSTOMER account GSINTLModify() failed for root: Fee,, node:ThirdPartyMnemonic,GSINTLModify() failed for root: Transaction,, node:FeeList,Unable to find CUSTOMER account GSINTLModify() failed for root: Fee,, node:ThirdPartyMnemonic,G
* SS sent email (11.20)
CALYPSO 1241789 9091113 CDSNRG FAILED Nov 20 2007 12:47PM OASYS: Unable to find Cusip <656060900> in Global Products .Failed to Get Cusip Information

*CR sent email (11.05)
CALYPSO 1121098 9039424 LDS3C FAILED Nov 14 2007 10:19AM OASYS: Unable to find CUSTOMER account RBSGRN3CModify() failed for root: Transaction,, node:CounterPartyMnemonic,RBSGRN3CModify() failed for root: Deal,, node:TransactionList,




Now my requirement is ....
a)I need to read the section starts from * until it encounters a blank line in the above file and write into a temporary file say checkfailed.txt.
b)Then I need to read the comment line from checkfailed .txt and then add it to another file dealfailed.txt.

Kindly help me out in that...
 

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 04:37 AM.


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