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.

5
  • this worked great for me but what if I don't want the leading new line? Commented Mar 6, 2019 at 19:17
  • @MichaelTunnell: sed -e 34{r file1.xml' -e '}' file2.xml Commented Mar 6, 2019 at 19:22
  • Yep, that was it. I removed p;g; and added -i to the parameters and it works great. Thank you so much for the help and the incredibly fast response! :D Commented Mar 6, 2019 at 19:23
  • @MichaelTunnell: I've reduced it to the essential part: sed '34r file1.xml file2.xml Commented Mar 6, 2019 at 19:25
  • that is essentially what I ended with, thank you for clarifying so I could confirm what I put was correct! Commented Mar 6, 2019 at 19:28