sed-i(替换字符串),直接操作文件


sed -i "1546s/\$\_GET\['lang'\]/isset(\$\_GET\['lang'\]) \&\& \$\_GET\['lang'\]!=''?\$\_GET\['lang'\]\:'ZH_TW'/g" /icbcweb/production_web/web/module/column_ctrl.php

sed -i "1554,1565s/\_GET\['lang'\]/lang/g"  /icbcweb/production_web/web/module/column_ctrl.php

你可能感兴趣的:(操作文件)