我有一个php3网站,我想在php 5.2上运行。
首先,我只想将每个对当前“index.php3”_within_each_file_(递归)的引用更改为“index.php”,然后继续担心全局等。
发布于 2018-08-14 16:00:48
find -type f -exec perl -pi -e 's/\bindex\.php3\b/index.php/g' {} \;
发布于 2018-08-14 17:15:51
sed -i 's/php3/php/g' *
假设你使用的是类似Unix的操作系统。
https://stackoverflow.com/questions/-100000566
复制相似问题