How should I escape special characters in bash
flyway info -url="jdbc:redshift://server_name/db_name?ssl=true&sslfactory=com.amazon.redshift.ssl.NonValidatingFactory" -password='$PROD_PASSWORD'
PROD_PASSWORD=sf45$h)jY*@hj
I want to escape the dollar sign
I tried escape \
and putting password='$PROD_PASSWORD'
and also password="$PROD_PASSWORD"
also %40
.
PROD_PASSWORD='sf45$h)jY*@hj'
andpassword="$PROD_PASSWORD"
. – dessert Oct 11 '18 at 22:16