1、shell查找 .html文件,例:
find /usr/local/guotom/webapps/ZingMH/nodeJs/tpls/views/ -type f -name '*.html'
2、替换方法
sed -i "s/邀请/呵呵/g"【将邀请替换为呵呵】
3、查找并替换
find /usr/local/guotom/webapps/ZingMH/nodeJs/tpls/views/ -type f -name '*.html'|xargs sed -i "s/邀请/呵呵/g"【查找/usr/local/guotom/webapps/ZingMH/nodeJs/tpls/views/目录下所有html文件中的内容并将文件中邀请替换为呵呵】