hi trying to replace the following string with a long one :
@x@ 
with string that I got from the command line:
read test    
sed -i --backup 's/@x@/'${test}'/g' file.json README.md
but it is working only for 1 word, it is not working if there is space between word . even between quotes
sed: 1: "s/@x@/string test string: unterminated substitute in regular expression
 
     
     
     
    