Bitcoind daemon: error connecting to the server?
-bash: =: command not found


Leave out the initial dollar symbol when you assign the variable:

NEW_ADDRESS=$(./bitcoin-cli getnewaddress)

Use the dollar symbol when you use the variable:

echo $NEW_ADDRESS