troubleshooting Question

Replace string at given position

Avatar of ibgadmin
ibgadminFlag for United States of America asked on
Scripting LanguagesPowershell
10 Comments3 Solutions37 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.
ORDFILEX.txt
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 10 Comments.
Join the Community
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 3 Answers 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