#!/bin/bash
if [[ "$2" ]]; then
	nc "ctrl-c.club" $2 < $1
elif [[ "$1" ]]; then
	echo "No port specified, defaulting to 54321"
	nc "ctrl-c.club" 54321 < $1
else
	echo "You need to specify a file to send"
	echo ""
	echo "Usage: recieve [filename] [port]"
fi
