#!/bin/bash

set -e

if [[ -z $DB ]]
then
	echo "$0:" '$DB not set' >&2
	exit 1
fi

sqlite3 $DB < postplays.sql | awk -F  '{printf "%s\n\n%s %s\n#%s %s\n#%s %s\n\n#baseball #live\n", $1, $2, $3, $4, $5, $6, $7}'
