Hello I need to replace a string but i receive error using string 'return false;'
#!bin/bash
oldstring='{alert("bash")}'
newstring='{return false;}'
grep -rl $oldstring /home/commons.bundle.js | xargs sed -i s/$oldstring/$newstring/g
error: sh deleteBoo.sh sed: espressione -e #1, carattere 25: comando `s' non terminato