curpath=`pwd` var=" <setting defaultpath=\""$curpath/"\" />" oldvar="<setting defaultpath=" echo $var sed -i "/$oldvar/c$var" ./IVSysMan.xml