neumachen
2/5/2018 - 3:44 PM

Check if postgres DB exists on command line

psql -lqt | cut -d \| -f 1 | grep -qw <db_name>