job_id = 10
我想替换JOB_ID_DEFAULT为10
开始写法
sed 's/JOB_ID_DEFAULT/${job_id}/' test > test.ctl
不行, 后来发现外层改成双引号就可以了
sed "s/JOB_ID_DEFAULT/${job_id}/" test > test.ctl
http://blog.csdn.net/zxx2403/article/details/7245339
job_id = 10
我想替换JOB_ID_DEFAULT为10
开始写法
sed 's/JOB_ID_DEFAULT/${job_id}/' test > test.ctl
不行, 后来发现外层改成双引号就可以了
sed "s/JOB_ID_DEFAULT/${job_id}/" test > test.ctl
http://blog.csdn.net/zxx2403/article/details/7245339
转载于:https://my.oschina.net/xiaominmin/blog/1598794