I want to use sed with a variable. My script: 
input_variable="test" &&
ssh root@192.168.7.2 'cd /path/to/file && sed -i "s/this is not/this is a $input_variable/g" text.txt'
My script is supposed to change this is not into this is a test
However it changes it to this is a and somehow ingnoring the variable input_variable
Anyone an idea?
 
     
    