Hi
That script works but the only thing is the 6 line for the 2nd group appears at the end of file. This line should be after the 5 line. this is the output. Thank you very much. could you please help.
101 12110825030430021170810060810A094101BANK OF AMERICA
5200AMERICAN EXP 144892...
Hi
I have a fixed format data file. In this data file I want the total of all the fields at position:21 of all the lines starting with 6. There lines starting with 6 for each group of line start wtih 5. In this case I should get 2 totals as there are 2 groups of 5 lines.
$ cat file
101...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.