linux下如何批量替换多个文件中的某个字符串?

答: sed -i "s/<old_string>/<new_string>/g" `grep "<old_string>" -l <dir_or_wildcard_filename>

  例如:

    sed -i "s/jello/hello/g" `grep "jello" -l *.c

原文地址:https://www.cnblogs.com/dakewei/p/11045700.html