标签:sed 变量
a=world echo hello|sed "s/^.*/$a/g"
a=/root/world.txt echo hello|sed "s#^.*#$a#g" #Right echo hello|sed "s/^.*/$a/g" #Error
linux命令之——sed用法
原文地址:http://blog.csdn.net/u011402596/article/details/45914327