#!/bin/sh

case $# in
2) num=$1
   name=$2
   ;;
*) echo -n "Tropical Depression Number (e.g., one):  "
   read num
   echo -n "Tropical Storm Name (e.g., allison):  "
   read name
# echo "Usage:  merge trop_dep_num trop_storm_name" ; exit 1
   ;;
esac


echo "Merging trop. storm/hurr. $name with trop. dep. $num"
echo "Press return to continue"
read nothing

if test -f $num.trk
then
   if test -f $name.trk
   then
      cat $name.trk >> $num.trk
      mv $num.trk $name.trk
   fi
fi


