What is sed command to edit line that includes quotes and spaces?
Posted on 2015-01-28
I'm trying to edit a line in a file as follows
sed -i 's@#filter = [ "a/.*/" ]@filter = [ "a/sda/", "a/sdb/", "a/sdc/", "r/.*/" ]@g' /etc/lvm/lvm.conf
It does not work. I've tried enclosing in quotes etc. but without success.
Can anyone advise as to the correct command?