I have requirement like if at posistion 10 there is '40' and at posistion 20 there is '09' i need to change that 09 to 90.
Hope i explained it clear.
for example my input file is like this
----+----1----+----2----+----3----+----4----+---
***************************** Top of Data ******
THIS IS HEADER
---------40AAAAAAAA09-----------AAAAAAAAA
---------45AAAAAAAAAA...................A
---------46AAAAAAAAAAMMMMMMMMMMMMMMMMMMMA
---------40AAAAAAAA08BBBBBBBBBBBBBBBBBAAA
---------40AAAAAAAA09CCCCCCCCCCCCCCCCCAAA
THIS IS FOOTER
**************************** Bottom of Data ****
***************************** Top of Data ******
THIS IS HEADER
---------40AAAAAAAA09-----------AAAAAAAAA
---------45AAAAAAAAAA...................A
---------46AAAAAAAAAAMMMMMMMMMMMMMMMMMMMA
---------40AAAAAAAA08BBBBBBBBBBBBBBBBBAAA
---------40AAAAAAAA09CCCCCCCCCCCCCCCCCAAA
THIS IS FOOTER
**************************** Bottom of Data ****
I want my output file like
----+----1----+----2----+----3----+----4----+----
***************************** Top of Data *******
THIS IS HEADER
---------40AAAAAAAA90-----------AAAAAAAAA
---------45AAAAAAAAAA...................A
---------46AAAAAAAAAAMMMMMMMMMMMMMMMMMMMA
---------40AAAAAAAA08BBBBBBBBBBBBBBBBBAAA
---------40AAAAAAAA90CCCCCCCCCCCCCCCCCAAA
THIS IS FOOTER
**************************** Bottom of Data *****
***************************** Top of Data *******
THIS IS HEADER
---------40AAAAAAAA90-----------AAAAAAAAA
---------45AAAAAAAAAA...................A
---------46AAAAAAAAAAMMMMMMMMMMMMMMMMMMMA
---------40AAAAAAAA08BBBBBBBBBBBBBBBBBAAA
---------40AAAAAAAA90CCCCCCCCCCCCCCCCCAAA
THIS IS FOOTER
**************************** Bottom of Data *****
could some one please tell me how to do this.