sed -i s/"str1"/"str2"/g `grep "str1" -rl ./` #-i 以文件形式打开, 将`grep `的操作结果作为文件 #s/"str1"/"str2"/g 将str1 替换成str2, g表示全部替换
全栈工程师