1#!/bin/sh 2 3case $# in 42) num=$1 5 name=$2 6 ;; 7*) echo -n "Tropical Depression Number (e.g., one): " 8 read num 9 echo -n "Tropical Storm Name (e.g., allison): " 10 read name 11# echo "Usage: merge trop_dep_num trop_storm_name" ; exit 1 12 ;; 13esac 14 15 16echo "Merging trop. storm/hurr. $name with trop. dep. $num" 17echo "Press return to continue" 18read nothing 19 20if test -f $num.trk 21then 22 if test -f $name.trk 23 then 24 cat $name.trk >> $num.trk 25 mv $num.trk $name.trk 26 fi 27fi 28 29 30