Skip to content

Instantly share code, notes, and snippets.

@mitkot
Created April 12, 2016 23:43
Show Gist options
  • Save mitkot/8d6b71992b035904d07e0b2c01cd5a39 to your computer and use it in GitHub Desktop.
Save mitkot/8d6b71992b035904d07e0b2c01cd5a39 to your computer and use it in GitHub Desktop.
connect-redshift.sh
#!/bin/sh
if [ -z "$1"];then
user="(master user)"
else
user=$1
fi
PGPASSWORD=(password) psql -h (redshift endpoint) -U $user -p (port) -d (database name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment