please advice what is wrong with my sed syntax ?
ssh postgres@172.34.5.76 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"
ssh
– Jeff Schaller Sep 13 '17 at 15:29