linux批量修改文件中包含字符串的查找替换

find -name "*.env" | xargs perl -pi -e 's|\babcdefg\b|hahaha|g'

 

.env 文件中abcdef 改为hahaha

posted on 2018-08-01 17:01  studyphp  阅读(131)  评论(0编辑  收藏  举报

导航