Open BailinSong opened 4 years ago
why modify other files by "sed"
# insert nacos into plugin sed -i '/coredns\/core\/dnsserver/a\\t_ "coredns/plugin/nacos"' core/coredns.go sed -i '/whoami/a\\t"nacos",' core/dnsserver/zdirectives.go sed -i '/coredns\/plugin\/whoami/a\\t_ "coredns/plugin/nacos"' core/plugin/zplugin.go # modify import sed -i "s/github.com\/coredns\///g" `grep 'github.com/coredns/' -rl . | grep '.go'`
why modify other files by "sed"