Shell编程-1:使用Linux shell脚本修改xml文件内容
我们的项目中有一个SkyCameraInfo.xml,在每次启动程序后需要手动修改这个xml文件里的内容,修改方式有两种:
1、使用sed命令
新建shell脚本test.sh,赋予脚本可执行权限,脚本内容如下:
#!/bin/sh
if [ $# -ne 9 ];then
echo "usage argument 1:Version 2:Model 3: qId 4:qKey 5:mdQke...
原创
2018-12-13 11:03:34 ·
10701 阅读 ·
0 评论