如何使用sed将以下resolv.conf的内容-search dev.somedomain.com
替换为search dev.somedomain.com dev.someotherdomain.com
?
sed -i -e 's/search dev.somedomain.com/search dev.somedomain.com dev.someotherdomain.com/g' /etc/resolv.conf
并看到以下错误,
sed: cannot rename /etc/sedxWtVcI: Device or resource busy