#!/bin/bash THREAD_NAME=$1 if [ ! -z "${THREAD_NAME}" ]; then ssh $CICADAS_USER@cicadas.surf "cat /opt/threadcat/$THREAD_NAME" else echo You did not provide a thread name. echo USAGE: "threadcat read THREAD_NAME" fi