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?