Avatar of ibgadmin
ibgadmin
Flag for United States of America

asked on 

Replace string at given position

I receive daily order files where I would like to change the character "d" in position 247 to a space " ".  Tricky part is the line where it is found should be defined by the record type found in position 1-2.  In this case "15".  So any line beginning with "15" and there is a "d" in pos. 247, change that to a " ".  What would be the best way to do something like this?  I've heard Powershell would be the best solution, but I am not that familiar with it.  I have attached a sample file.
ORDFILEX.txt
PowershellScripting Languages

Avatar of undefined
Last Comment
ibgadmin

8/22/2022 - Mon