标签:
<title name= 1200> <param name="root", value="haha"/> <param name="root", value="haha"/> <title name= 1200> <param name="root", value="haha"/> <param name="root", value="haha"/>
替换第5行的内容为"<para name ="root", value="magnum"/>"
shell脚本如下:
#!/bin/bash path=$1 head=‘ <param name="root" value="‘ tail=‘"/>‘ rosPath="$head$path$tail" echo "ros new Path: $rosPath" sed -in "5s:.*:$rosPath:g" demo_offline.launch
标签:
原文地址:http://www.cnblogs.com/biglucky/p/5001019.html