Hi,
I have a batch file with a header and trailer record, with dataline records in the middle. I need to replace only the rows with a space in column 10 with the number 3, and not alter other rows, or the header and trailer.
99999123 ACCOUNT DATA Header
123456789012345678901234567890
123456789 12345678901234567890
123456789012345678901234567890
123456789 12345678901234567890
99999300 Account Data Trailer
The output should look like this
99999123 ACCOUNT DATA Header
123456789012345678901234567890
123456789312345678901234567890
123456789012345678901234567890
123456789312345678901234567890
99999300 Account Data Trailer
Can anyone suggest me how to achieve this?
Thanks
Dave
I have a batch file with a header and trailer record, with dataline records in the middle. I need to replace only the rows with a space in column 10 with the number 3, and not alter other rows, or the header and trailer.
99999123 ACCOUNT DATA Header
123456789012345678901234567890
123456789 12345678901234567890
123456789012345678901234567890
123456789 12345678901234567890
99999300 Account Data Trailer
The output should look like this
99999123 ACCOUNT DATA Header
123456789012345678901234567890
123456789312345678901234567890
123456789012345678901234567890
123456789312345678901234567890
99999300 Account Data Trailer
Can anyone suggest me how to achieve this?
Thanks
Dave