troubleshooting Question

Replace string at given position

Avatar of ibgadmin
ibgadminFlag for United States of America asked on
PowershellScripting Languages
10 Comments1 Solution37 ViewsLast Modified:
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.
Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros