#!/bin/sh
原始xml文件:
/home/test.xml
<cellphone>
<android>1000</android>
<apple>200</apple>
</cellphone>
執行命令
./setParameter.sh apple 800 /home/test.xml
修改後的xml文件:
/home/test.xml
<cellphone>
<android>1000</android>
<apple>800</apple>
</cellphone>