I've got some issues with escaping parentheses in a string, using bash and sed.
Here's what I'm doing:
#!/bin/bash
olddescription='(1 phrase/line)'
newdescription="\"$volledigenaam\""
(cd /home/hew/git/odoo/addons/$technischenaam ; sed -i s/$olddescription/$newdescription/g __openerp__.py)
I've read that if I use single quotes, I don't need to escape the parentheses. I also tried escaping the parentheses with backslash but didn't work either.
This is the error:
sed: -e expression #1, char 4: unterminated `s' command
Any ideas on how to solve this?