命令: sed -i s/yyyy/xxxx/g `grep yyyy -rl --include="*.txt" ./` 作用:将当前目录(包括子目录)中所有txt文件中的yyyy字符串替换为xxxx字符串 参数解释: