我想替換以下字符串如何在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)'呼籲這個問題?請不要濫用標籤。 –