我想替换以下字符串如何在linux中使用sed替换字符串中的单引号?
su - oracle -c "$agent_home/bin/emctl control agent runCollection ex01cel01:oracle_exadata oracle_exadata_configuration"
与
su - oracle -c "'$agent_home'/bin/emctl control agent runCollection ex01cel01 :oracle_exadata oracle_exadata_configuration"
注更换:额外的单引号覆盖$ agent_home
请帮我
的【如何逃脱在sed单引号?](http://stackoverflow.com/questions/24509214/how-to-escape-single-quote-in-sed) – Sundeep
哪里是可能的复制' sed(1)'呼吁这个问题?请不要滥用标签。 –