I\'m having a problem with using sed in a bash script. Here is the line:
sed -i \"s/\"$name\"/\"$input\"/g\" ~/input.script
I\'m getting th
You don't need nested quotes. Also, try changing the delimeter:
sed -i "s@$name@$input@g" ~/input.script