Error with sed unterminated s command in bash

You don’t need nested quotes. Also, try changing the delimeter:

sed -i "s@$name@$input@g" ~/input.script

Leave a Comment