Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Thank you RudiC. I tried. It replaces only the first occurance in the input text file. output: #create_test -type hard -outer { 1.0000 } { \ psfxxx_16_pi/psfop/deadline_north_re_0 } create_ test -type hard -outer { 0.0000 } { \ psfxxx_16_pi/psfop/deadline_south_re_1 } Commented Nov 16, 2018 at 9:32
  • Hi! RudiC. Your fix works. Great! my input file had an issue. It had create_ in one line and test... in the next. Fixed it and it's working fine now. You are a genius. Commented Nov 16, 2018 at 9:43
  • You can see in my sample output that it replaces on matching records, and doesn't if no match. What's different in your input file? Hoppla - cross post. Commented Nov 16, 2018 at 9:44
  • works great thanks :) Commented Jun 13, 2024 at 9:37