I need to construct SED command that contains "/" character. sed is not consedering this command as valid:
adding 'john/street'
String cmdtest[] = {"sed","-3 a" + "\\","> john\\/street","/scratch/tmp.txt"};
also I need to know how can I go for replacing a string that has "/" included.
this is what I need to execute
cmdtest[] = {"sed","-i","s/ee.jar:/ee.jar:$MY_HOME\\\/lib\\\/jcagent.jar","/scratch/myreg.sh"};
Ouptput should replace {ee.jar} with {ee.jar:$MY_HOME/lib/jcagent.jar} in file myreg.sh