Articles in this series
Inside Psql List DB \l Change DB \c dbname List extensions \dx Execute a file psql --file create_db_with_user.sql Execute a file with arguments psql --file create_db_with_user.sql -v db="dbname" # Note the ' this is necessary to interpret as string ...
Syntax Check arguments Number if [ $# -eq 0 ]; then ... else ... fi Check variable exists if [ -z ${$1+x} ]; then Compare String if [ "$1" = "$str2" ]; A Function info () { echo -e "\n$1" } Calling a function text=" ************************ Uninsta...