摘要: sed -i "s|groups\['consul'\]\[0\]|hostvars\['consul-1'\]\['ansible_host'\]|g" `grep -rl "groups\['consul'\]\[0\]" ./` 注意的是 's|||g' 语句,当要替换的内容中有单引号 ' ' 阅读全文
posted @ 2021-03-09 16:04 a戴姆勒 阅读(906) 评论(0) 推荐(0) 编辑