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
Post a Comment