在目录/home下递归查找含有“abc”的文件,并且替换abc为cba sed -i "s/abc/cba/g" `grep abc -rl /home` 检验指令:grep -rn "abc" /home 通过检验来判断abc是否替换成功