cat <<END

Words go here.

And here.
END
printf "Continue (y/n)? [y] "

if [ "$do_release" = "" ]; then
        read do_release 
fi
if [ "$do_release" = "" ]; then
        do_release=y
fi

# read do_release

 if [ "$do_release" != 'y' ]; then
   echo "You picked NO"
   echo "ending program"
   exit
 else
   echo "You picked YES"
   echo "continuing program"
 fi

echo "***********************************************************************"
echo "SIMPLE FILE COPY SCRIPT FROM ONE DIRECTORY TO ANOTHER"
echo ""
printf "DESTINATION directory [/Users/joe/Desktop/practice3]: "
if [ "$wadir" = "" ]; then
	read wadir
fi
if [ "$wadir" = "" ]; then
	wadir=/Users/joe/Desktop/practice3
fi

echo $wadir

printf "SOURCE directory [/Users/joe/Desktop/practice2]: "
if [ "$srcdir" = "" ]; then
        read srcdir 
fi
if [ "$srcdir" = "" ]; then
        srcdir=/Users/joe/Desktop/practice2
fi

echo $srcdir

	# Copy files to target directory
	if [ "$wadir" != "$srcdir" ]; then
		echo "Copying files to $wadir .."
		(cd $srcdir ; tar cf - . | (cd $wadir ; tar xf -))
		echo "..done"
		echo ""
fi

echo $1

echo $2


if [$1 eq '']
then
  echo "Missing first parameter (joe extension to be changed)"
  echo "Usage: extchg <extension to change from> <extension to change to>"
  exit
fi

if [$2 eq '']
then
  echo "Missing second parameter (jill extension to change to)"
  echo "Usage: extchg <extension to change from> <extension to change to>"
  exit
fi

if test ! -s *.$1
then
  echo "Nothing to convert! Try to copy the script to the directory where you have files to convert" 
  exit
fi


if  test ! -d bak
then
	mkdir bak
else
	echo 'Directory bak is already there - will try to use it to backup your files...'
fi

for i in *.$1
	 do 
	 sed -e 's/'$1'/'$2'/g' $i > `ls $i|sed -e 's/'$1'/'$2'/g'`
	 mv $i bak/$i
	done;

echo "DONE"
