how do I ignore special characters in sed

خرید بک لینک

Try escaping the '.' and the '' so that shell interpreter will put an actual slash in the string.

So, something like this should work:

ToString="java.extended.properties=-XX\:MaxPermSize\=128m -XX:CompileCommand=exclude,com/tibco/repo/RVRepoProcessBridge,handleServerHeartbeat"

sed -i "s@.*java.extended.properties.*@$ToString@g" "$ToFile"

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 251 تاريخ: جمعه 11 تير 1395 ساعت: 21:28

صفحه بندی