please advice what is wrong with my sed syntax ?
ssh [email protected] sed -i '/archive_command/ s/#BARMAN#[ ]*//g' /var/lib/pgsql/data/postgresql.conf"
sed: -e expression #1, char 17: missing command
my target is to remove the #BARMAN# string on remote machine
when I do this on local machine its works as the following:
sed -i '/archive_command/ s/#BARMAN#[ ]*//g' /var/lib/pgsql/data/postgresql.conf"