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.

Required fields*

2
  • This very similar question produced a satisfactory answer in awk: unix.com/shell-programming-and-scripting/… Commented Apr 24, 2015 at 6:46
  • I'd suggest a proper script in perl or python though.. You're going to be stretching sed with multi-line replace Commented Apr 24, 2015 at 6:51