1.
sed 命令 sed -i "s/oldstring/newstring/g" `grep oldstring -rl /path`
2.
perl 命令 perl -p -i -e "s/oldstring/newstring/g" /path/*.html /path/*.txt
3.
perl 命令 perl -pi -e "s/oldstring/newstring/g" `find /path type -f`
1.
sed 命令 sed -i "s/oldstring/newstring/g" `grep oldstring -rl /path`
2.
perl 命令 perl -p -i -e "s/oldstring/newstring/g" /path/*.html /path/*.txt
3.
perl 命令 perl -pi -e "s/oldstring/newstring/g" `find /path type -f`