I would to replace a string with sed
command in ssh from local to remote.
The file is /data/PGSQL9.x/postgresql.conf and I would like to change the string listen_addresses = '*'
to listen_addresses = 'localhost'
I have to be root, so I do this :
ssh root@myRemoteAddr 's,listen_addresses = '\''\*'\'',listen_addresses = '\''localhost'\'',g' /data/PGSQL9.x/postgresql.conf
And I have this message :
sed -e expression #1, char 18: unterminated ``s' command
And when I use "/data/PGSQL9.x/postgresql.conf"
I have the same message.