I've been using Xmlstarlet to modify some .xml
files but I am lost trying to figure out how to modify a tag based on a partial name. What is the best way to comment out an entire line that begins with <
and ends with >
when the line has a name of spiral
in it?
Take the 2-minute tour
×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
I would use sed for that task:
Demo:
|
|||
|