#####sed在替换模式下必须要用双引号引起替换内容 [root@localhost ~]# A="how are you" [root@localhost ~]# echo $Ahow are you [root@localhost ~]# echo "hello world" | sed "s/hello/$A/g" how are you world
本文出自 “天道酬勤” 博客,请务必保留此出处http://8855546.blog.51cto.com/8845546/1649763
原文地址:http://8855546.blog.51cto.com/8845546/1649763