Error with sed unterminated s command in bash -


i'm having problem using sed in bash script. here line:

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

i'm getting error: sed: -e expression #1, char 24: unterminated `s' command

weirdly enough working in earlier version of code. i've been trouble shooting cannot find solution.

you don't need nested quotes. also, try changing delimeter:

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

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -