Article 4W5AW sed escape characters issue

sed escape characters issue

by
bmxakias
from LinuxQuestions.org on (#4W5AW)
Hello

I am trying to to edit a file and change this line:

Code:[ ${NETWORKING} = "no" ] && exit 0to
Code:[ "${NETWORKING}" = "no" ] && exit 0i tried to use \ for some special characters and my command is:
Code:sed -i "s|[ \${NETWORKING} = \"no\" ] && exit 0|[ \"\${NETWORKING}\" = \"no\" ] && exit 0|" /folder/fileBut it doesn't work...latest?d=yIl2AUoC8zA latest?i=i3H2M5OyTSY:T07RjLdV63s:F7zBnMy latest?i=i3H2M5OyTSY:T07RjLdV63s:V_sGLiP latest?d=qj6IDK7rITs latest?i=i3H2M5OyTSY:T07RjLdV63s:gIN9vFwi3H2M5OyTSY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments