find wwwwwwroota -name txt -exec sh -c grep -qE 圣龙香港澳门预言 $1 && sed -e 圣d -e 龙d -e 香港d -e 澳门d -e 预言d $1 sh ;将上面代码改为在 wwwwwwroota 目录下查找所有后缀为 txt 的文件并将包含关键字的行删除
find /www/wwwroot/a -name "*.txt" -exec sed -i -e '/圣/d' -e '/龙/d' -e '/香港/d' -e '/澳门/d' -e '/预言/d' {} ;
原文地址: https://www.cveoy.top/t/topic/gPuc 著作权归作者所有。请勿转载和采集!