如何用awk或sed递归查找/替换字符串?

天大地大妈咪最大 提交于 2020-05-06 23:22:12

问题:

How do I find and replace every occurrence of: 我如何查找和替换每次出现的情况:

subdomainA.example.com

with

subdomainB.example.com

in every text file under the /home/www/ directory tree recursively? /home/www/目录树下的每个文本文件中递归?


解决方案:

参考一: https://stackoom.com/question/6drn/如何用awk或sed递归查找-替换字符串
参考二: https://oldbug.net/q/6drn/How-to-do-a-recursive-find-replace-of-a-string-with-awk-or-sed
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!