Pattern search and record

February 22, 2010 at 06:12:30
Specs: Windows XP

Requirment detail:

1. fields are sep by " : "
2. Record are sep by " ' "

3. Read only those record which start with "LIN" and End with "MOA"

Cretira for output file:

3 letter of first field :

if "QTY" than 2nd field
If "MOA" than 2nd and 4th field
IF "IMD" than 5th field


ex:

LIN+4++TM384.2.HSP.P1832.A:SA::++01'
PIA+1+AC.F.P++'
IMD++8+TM:::TM384:Talk 299@0.50'
IMD++8+SP:::HSP:Vodafone Service Package'
IMD++8+SN:::P1832:ISD Rent'
IMD++8+MRKT:::***:Permanent VAS'
QTY+107:1:UNI'
MOA+125:50.00:INR:091:9'
MOA+125:50.00:INR:091:19'


Output:

IMD Talk 299@0.50'
IMD Vodafone Service Package'
IMD ISD Rent'
IMD Permanent VAS'
QTY 1
MOA 50.00 091:9'
MOA 50.00 091:19'


See More: Pattern search and record

Report •

#1
February 22, 2010 at 06:21:02
Help me out...wait for your responses

Report •
Related Solutions


Ask Question