I want to replace filter = [ "a/.*/" ]
with
filter = [ "a\/sda1\/", "a\/sdb\/", "r/\.\*\/"]
I have tried this regex
sed -i -r 's/\s+filter\s=.*/'filter = [ "a\/sda1\/","a\/sdb\/", "r/\.\*\/"]'/' conf
But getting this error. Please advice.
sed: -e expression #1, char 23: unterminated `s' command