发布网友
共1个回答
热心网友
用sed命令。
sed -i "s/原字符串/新字符串/g" `grep 原字符串 -rl 所在目录`
例如:我要把man替换为hun,执行命令:sed -i "s/man/hun/g" 'grep man -rl /www'