更新时间:2022-01-01 09:14:10
find . -name "*.php" -print0 | xargs -0 sed -i 's/string1/string2/g'
您也可以完全不使用xargs:
You can also do it without xargs at all:
find . -name "*.php" -execdir sed -i 's/string1/string2/g' {} +
重命名文件名中带有空格和点的文件
查找和xargs正确处理名称中带有空格的文件名
无法在文件名,Windows批处理文件和image magick中带有空格的文件上循环
bash ffmpeg查找和文件名中的空格