shell更改xml中的指定值

sed -i 's;<id>.*<\/id>;<id>新内容<\/id>;g'  your.xml

猜你喜欢

转载自www.cnblogs.com/to-here/p/12088372.html