Category Archives: sed

PHPHOST BLOG

Web Hosting Related Articles You May Need

[one-liner]: Commenting out a block in an XML file using sed

Background

This issue came up recently where I needed to programmatically comment out a section of tags in an XML file.

1
2
3
4
<login-module code="org.dcm4chex.archive.security.TrustLoginModule"
flag = "required" >
[…] Continue reading

Posted in one-liner, sed, Syndicated, tip, tips & tricks, XML | Comments Off on [one-liner]: Commenting out a block in an XML file using sed