#!/bin/bash

[ "$2" == "" ] && exec echo "Usage: $0 <Set number> <Character ID>"

source ~/.gamerc

PGPASSWORD="$LIVE_SERVER_DB_PASSWORD" psql -h gamedb$1 $GAME_DB_NAME$1 <<< "copy (select given_name from player_characters where id=$2) to stdout csv;"
