Hi Experts,
I have a file format as mentioned below. I would like to have unix script (HP Unix) which can:
- Remove first 6 and last 3 lines.
- Delete the lines where 3rd column having Alpha Numeric Number
- Delete the lines where 4th column having 0.00
- Calculate the sum of all the values in 4th column. If it is 0. Write in a log file "Sum is Zero". Else Rename the file as Invaild File.
Sample File Snippet
"RPT TRIALB ABC LIMITED"
" TRIAL BALANCE"
" FOR THE PERIOD ENDED DECEMBER 2009"
""
""
""
"A","Retail Bank1","1234",1000,0.00,738295.08,0.00
"B","Retail Bank2","5678",2000,0.00,738295.08,0.00
"C","Retail Bank3","9101",2000,0.00,738295.08,0.00
"D","Retail Bank4","A984",-2000,0.00,738295.08,0.00
"E","Retail Bank5","23215",0.00,0.00,738295.08,0.00
"","","",,,,
"","","",,,,
"END OF REPORT"